Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 105.2 kB / 16.27 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 189.4 kB / 17.19 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2161/0.2161, allocations: 43.52 MB / 313.9 MB, free: 0.5391 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 64.72 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09602, allocations: 57.79 MB / 440.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01021/0.1063, allocations: 11.29 MB / 451.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006768/0.1131, allocations: 2.777 MB / 454.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.1149, allocations: 55.94 kB / 454.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003337/0.1183, allocations: 1.312 MB / 456.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003177/0.1215, allocations: 1.21 MB / 457.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.122, allocations: 71.84 kB / 457.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003712/0.1257, allocations: 2.752 MB / 460.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002589/0.1284, allocations: 1.848 MB / 461.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.13, allocations: 1.055 MB / 463 MB, free: 348 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.132, allocations: 1.452 MB / 464.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006003/0.1326, allocations: 208 kB / 464.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.1338, allocations: 487.4 kB / 465.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.1349, allocations: 1.414 MB / 466.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.1364, allocations: 1.715 MB / 468.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00438/0.1408, allocations: 5.205 MB / 473.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1408, allocations: 0 / 473.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1408, allocations: 0 / 473.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-05/0.1409, allocations: 0 / 473.5 MB, free: 5.836 MB / 350.1 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.004289/0.1452, allocations: 3.605 MB / 477.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1452, allocations: 15.89 kB / 477.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006621/0.1459, allocations: 0.6632 MB / 477.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009389/0.1553, allocations: 2.94 MB / 480.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002809/0.1581, allocations: 1.53 MB / 482.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.1583, allocations: 172.6 kB / 482.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004428/0.1587, allocations: 235.8 kB / 482.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.1711, allocations: 9.464 MB / 492.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.687e-05/0.1712, allocations: 19.81 kB / 492.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/0.1715, allocations: 107.8 kB / 492.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003428/0.1749, allocations: 2.369 MB / 494.6 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.1902, allocations: 8.672 MB / 0.4914 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0398/0.23, allocations: 29.3 MB / 0.52 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004734/0.2348, allocations: 3.053 MB / 0.523 GB, free: 6.152 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001349/0.2362, allocations: 0.9805 MB / 0.524 GB, free: 5.168 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009015/0.2452, allocations: 4.838 MB / 0.5287 GB, free: 72 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.2453, allocations: 39.22 kB / 0.5287 GB, free: 24 kB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 7.374e-06/0.2453, allocations: 0 / 0.5287 GB, free: 24 kB / 414.1 MB Notification: Performance of matching and sorting (n=126): time 0.2172/0.4625, allocations: 2.735 MB / 0.5314 GB, free: 88.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.4626, allocations: 60.59 kB / 0.5315 GB, free: 88.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.467, allocations: 2.564 MB / 0.534 GB, free: 88.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.4671, allocations: 43.03 kB / 0.534 GB, free: 88.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.4685, allocations: 2.651 MB / 0.5366 GB, free: 86.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006514/0.4691, allocations: 496.2 kB / 0.5371 GB, free: 86.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001508/0.4706, allocations: 0.899 MB / 0.538 GB, free: 85.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4708, allocations: 363 kB / 0.5383 GB, free: 85.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.4727, allocations: 1.353 MB / 0.5396 GB, free: 85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.4756, allocations: 4.123 MB / 0.5437 GB, free: 80.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005359/0.481, allocations: 5.969 MB / 0.5495 GB, free: 75.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.079e-05/0.4811, allocations: 27.62 kB / 0.5495 GB, free: 75.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.006323/0.4874, allocations: 5.285 MB / 0.5547 GB, free: 73.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.4875, allocations: 51.41 kB / 0.5547 GB, free: 73.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.19e-05/0.4876, allocations: 96.38 kB / 0.5548 GB, free: 73.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.341e-05/0.4877, allocations: 131.5 kB / 0.5549 GB, free: 73.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.4901, allocations: 0.9776 MB / 0.5559 GB, free: 73.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001023/0.4903, allocations: 185 kB / 0.5561 GB, free: 73.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.4929, allocations: 0.5999 MB / 0.5567 GB, free: 73.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.4932, allocations: 284.4 kB / 0.5569 GB, free: 73.13 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002179/0.4954, allocations: 1.892 MB / 0.5588 GB, free: 71.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.4956, allocations: 221 kB / 0.559 GB, free: 71.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.496, allocations: 269.7 kB / 0.5592 GB, free: 71.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-05/0.4961, allocations: 19.75 kB / 0.5593 GB, free: 71.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/0.4961, allocations: 3.938 kB / 0.5593 GB, free: 71.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.4961, allocations: 3.75 kB / 0.5593 GB, free: 71.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006513/0.5026, allocations: 5.611 MB / 0.5647 GB, free: 66.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.5027, allocations: 4 kB / 0.5648 GB, free: 66.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.5032, allocations: 142.3 kB / 0.5649 GB, free: 66.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.5032, allocations: 4.562 kB / 0.5649 GB, free: 66.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.135e-05/0.5033, allocations: 31.22 kB / 0.5649 GB, free: 66.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.373e-06/0.5033, allocations: 12 kB / 0.5649 GB, free: 66.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5033, allocations: 11.94 kB / 0.5649 GB, free: 66.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.5049, allocations: 1.783 MB / 0.5667 GB, free: 64.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/0.5054, allocations: 278 kB / 0.567 GB, free: 64.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.5056, allocations: 27.98 kB / 0.567 GB, free: 64.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005741/0.5062, allocations: 37.09 kB / 0.567 GB, free: 64.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5063, allocations: 68.36 kB / 0.5671 GB, free: 64.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/0.5064, allocations: 36 kB / 0.5671 GB, free: 64.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001634/0.508, allocations: 1.56 MB / 0.5686 GB, free: 62.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.508, allocations: 0 / 0.5686 GB, free: 62.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003037/0.5111, allocations: 1.009 MB / 0.5696 GB, free: 61.57 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001762/0.5129, allocations: 2.442 MB / 0.572 GB, free: 59.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004765/0.5176, allocations: 3.945 MB / 0.5759 GB, free: 55.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5177, allocations: 0 / 0.5759 GB, free: 55.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000605/0.5183, allocations: 0.7488 MB / 0.5766 GB, free: 54.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.5195, allocations: 252.4 kB / 0.5768 GB, free: 54.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/0.5467, allocations: 31.11 MB / 0.6072 GB, free: 18.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002409/0.5492, allocations: 2.973 MB / 0.6101 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002774/0.552, allocations: 1.484 MB / 0.6116 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001632/0.5536, allocations: 1.518 MB / 0.613 GB, free: 12.3 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5537, allocations: 0 / 0.613 GB, free: 12.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07373/0.6274, allocations: 41.12 MB / 0.6532 GB, free: 3.172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.171/9.798, allocations: 15.81 kB / 0.6532 GB, free: 3.156 MB / 446.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)