Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006829/0.0006829, allocations: 95.73 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2794/0.2794, allocations: 43.57 MB / 363.1 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 16 kB / 432.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.09684, allocations: 58.84 MB / 490.9 MB, free: 10.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.1837/0.2806, allocations: 25.89 MB / 0.5047 GB, free: 32.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.2915, allocations: 5.328 MB / 0.5099 GB, free: 28.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004839/0.2964, allocations: 113.7 kB / 0.51 GB, free: 28.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003263/0.2997, allocations: 1.266 MB / 0.5112 GB, free: 27.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008417/0.3082, allocations: 3.521 MB / 0.5147 GB, free: 26.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.3092, allocations: 92.94 kB / 0.5148 GB, free: 26.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003133/0.3124, allocations: 3.128 MB / 0.5178 GB, free: 25.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002922/0.3153, allocations: 2.253 MB / 0.52 GB, free: 24.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.3168, allocations: 0.8895 MB / 0.5209 GB, free: 24.14 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001693/0.3185, allocations: 1.382 MB / 0.5222 GB, free: 23.72 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005734/0.3191, allocations: 120.7 kB / 0.5224 GB, free: 23.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001261/0.3203, allocations: 405.5 kB / 0.5227 GB, free: 23.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.3216, allocations: 1.277 MB / 0.524 GB, free: 23.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.3227, allocations: 1.539 MB / 0.5255 GB, free: 22.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003252/0.326, allocations: 4.164 MB / 0.5296 GB, free: 21.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.326, allocations: 0 / 0.5296 GB, free: 21.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.326, allocations: 3.938 kB / 0.5296 GB, free: 21.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001235/0.3262, allocations: 0 / 0.5296 GB, free: 21.24 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.003853/0.33, allocations: 2.935 MB / 0.5324 GB, free: 19.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3301, allocations: 7.266 kB / 0.5324 GB, free: 19.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007322/0.3308, allocations: 0.6651 MB / 0.5331 GB, free: 19.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009453/0.3403, allocations: 3.025 MB / 0.536 GB, free: 18.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.343, allocations: 1.528 MB / 0.5375 GB, free: 17.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.463e-05/0.3431, allocations: 173.6 kB / 0.5377 GB, free: 17.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/0.3436, allocations: 221.9 kB / 0.5379 GB, free: 17.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.356, allocations: 9.46 MB / 0.5472 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.288e-05/0.3561, allocations: 18.47 kB / 0.5472 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003142/0.3565, allocations: 108.3 kB / 0.5473 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003516/0.36, allocations: 2.376 MB / 0.5496 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.3738, allocations: 8.633 MB / 0.558 GB, free: 5.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03625/0.4101, allocations: 29.32 MB / 0.5867 GB, free: 7.031 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004544/0.4146, allocations: 3.053 MB / 0.5896 GB, free: 3.758 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.416, allocations: 0.9765 MB / 0.5906 GB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007898/0.424, allocations: 4.843 MB / 0.5953 GB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.424, allocations: 39.22 kB / 0.5954 GB, free: 13.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 3.747e-06/0.424, allocations: 3.938 kB / 0.5954 GB, free: 13.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.005668/0.4297, allocations: 2.728 MB / 0.598 GB, free: 10.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.4298, allocations: 60.06 kB / 0.5981 GB, free: 10.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003942/0.4337, allocations: 2.55 MB / 0.6006 GB, free: 8.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.694e-05/0.4338, allocations: 41.7 kB / 0.6006 GB, free: 8.203 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.4356, allocations: 2.645 MB / 0.6032 GB, free: 5.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.4361, allocations: 0.4938 MB / 0.6037 GB, free: 5.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.4363, allocations: 84 kB / 0.6038 GB, free: 4.938 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000388/0.4367, allocations: 0.5476 MB / 0.6043 GB, free: 4.379 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/0.439, allocations: 1.34 MB / 0.6056 GB, free: 3.031 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003893/0.4429, allocations: 4.102 MB / 0.6096 GB, free: 13.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005892/0.4488, allocations: 5.94 MB / 0.6154 GB, free: 6.219 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-05/0.4489, allocations: 32 kB / 0.6154 GB, free: 6.188 MB / 442.7 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.0079/0.4568, allocations: 5.239 MB / 0.6206 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/0.4569, allocations: 51.98 kB / 0.6206 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/0.457, allocations: 100.9 kB / 0.6207 GB, free: 0.793 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/0.4572, allocations: 128 kB / 0.6208 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00268/0.4599, allocations: 0.9825 MB / 0.6218 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001566/0.46, allocations: 187.3 kB / 0.622 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/0.4629, allocations: 0.603 MB / 0.6225 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004011/0.4633, allocations: 276 kB / 0.6228 GB, free: 14.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 534 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002947/0.4662, allocations: 1.895 MB / 0.6247 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003551/0.4666, allocations: 217.2 kB / 0.6249 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000543/0.4671, allocations: 271.4 kB / 0.6251 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/0.4672, allocations: 12 kB / 0.6251 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.4672, allocations: 0 / 0.6251 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4672, allocations: 7.969 kB / 0.6251 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00925/0.4765, allocations: 5.614 MB / 0.6306 GB, free: 6.469 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.4765, allocations: 4 kB / 0.6306 GB, free: 6.465 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/0.4771, allocations: 135.8 kB / 0.6308 GB, free: 6.332 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/0.4771, allocations: 8 kB / 0.6308 GB, free: 6.324 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.4772, allocations: 27.97 kB / 0.6308 GB, free: 6.297 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.4772, allocations: 11.94 kB / 0.6308 GB, free: 6.285 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.4772, allocations: 4 kB / 0.6308 GB, free: 6.281 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.4793, allocations: 1.788 MB / 0.6326 GB, free: 4.418 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005369/0.4798, allocations: 298 kB / 0.6328 GB, free: 4.105 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002908/0.4801, allocations: 16 kB / 0.6329 GB, free: 4.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.4808, allocations: 43.94 kB / 0.6329 GB, free: 4.047 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.481, allocations: 60.38 kB / 0.633 GB, free: 3.988 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.465e-05/0.481, allocations: 39.98 kB / 0.633 GB, free: 3.949 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002296/0.4833, allocations: 1.545 MB / 0.6345 GB, free: 2.391 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4834, allocations: 0 / 0.6345 GB, free: 2.391 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00337/0.4867, allocations: 1.015 MB / 0.6355 GB, free: 1.371 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002611/0.4894, allocations: 2.435 MB / 0.6379 GB, free: 14.85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004673/0.494, allocations: 3.112 MB / 0.6409 GB, free: 11.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4941, allocations: 0 / 0.6409 GB, free: 11.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/0.4949, allocations: 0.7351 MB / 0.6416 GB, free: 11.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.4974, allocations: 247.4 kB / 0.6419 GB, free: 10.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03449/0.5319, allocations: 21.83 MB / 0.6632 GB, free: 2.547 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004303/0.5362, allocations: 2.974 MB / 0.6661 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002174/0.5384, allocations: 1.561 MB / 0.6676 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.002e-06/0.5385, allocations: 0 / 0.6676 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.493/6.032, allocations: 55.92 MB / 0.7222 GB, free: 138.3 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)