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.001156/0.001156, allocations: 106.3 kB / 16.41 MB, free: 6.492 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.001211/0.001212, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.389/1.389, allocations: 205.1 MB / 223.2 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.1973/0.1973, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 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.33 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09641, allocations: 57.8 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01177/0.1082, allocations: 11.28 MB / 0.4984 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005449/0.1137, allocations: 2.793 MB / 0.5011 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.1152, allocations: 51.94 kB / 0.5012 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.118, allocations: 1.312 MB / 0.5025 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002911/0.1209, allocations: 1.21 MB / 0.5036 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.1214, allocations: 79.84 kB / 0.5037 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003162/0.1245, allocations: 2.757 MB / 0.5064 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.1263, allocations: 1.848 MB / 0.5082 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.1275, allocations: 1.047 MB / 0.5092 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001511/0.129, allocations: 1.452 MB / 0.5107 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003278/0.1294, allocations: 208 kB / 0.5109 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008457/0.1302, allocations: 491.4 kB / 0.5113 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.1313, allocations: 1.414 MB / 0.5127 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.1327, allocations: 1.723 MB / 0.5144 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005048/0.1378, allocations: 5.487 MB / 0.5197 GB, free: 11.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1378, allocations: 4 kB / 0.5197 GB, free: 11.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1378, allocations: 0 / 0.5197 GB, free: 11.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.138, allocations: 4 kB / 0.5198 GB, free: 11 MB / 414.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.005351/0.1433, allocations: 3.605 MB / 0.5233 GB, free: 7.336 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1434, allocations: 15.83 kB / 0.5233 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000748/0.1441, allocations: 0.671 MB / 0.5239 GB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.1547, allocations: 2.936 MB / 0.5268 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003757/0.1585, allocations: 1.534 MB / 0.5283 GB, free: 2.117 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.1586, allocations: 176.6 kB / 0.5285 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005569/0.1592, allocations: 223.8 kB / 0.5287 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2205/0.3797, allocations: 9.464 MB / 0.5379 GB, free: 34.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.338e-05/0.3798, allocations: 19.47 kB / 0.538 GB, free: 34.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004351/0.3802, allocations: 111.8 kB / 0.5381 GB, free: 34.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004171/0.3844, allocations: 2.372 MB / 0.5404 GB, free: 34.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.4002, allocations: 8.666 MB / 0.5488 GB, free: 31.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0314/0.4316, allocations: 29.09 MB / 0.5772 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004073/0.4357, allocations: 3.041 MB / 0.5802 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.4368, allocations: 0.9844 MB / 0.5812 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007762/0.4446, allocations: 4.83 MB / 0.5859 GB, free: 13.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.4446, allocations: 39.22 kB / 0.5859 GB, free: 13.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=126): time 5.28e-06/0.4446, allocations: 0 / 0.5859 GB, free: 13.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=126): time 0.006218/0.4509, allocations: 2.744 MB / 0.5886 GB, free: 11.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.4509, allocations: 60.06 kB / 0.5887 GB, free: 11.03 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.4543, allocations: 2.569 MB / 0.5912 GB, free: 8.434 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.201e-05/0.4544, allocations: 33.7 kB / 0.5912 GB, free: 8.395 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.4561, allocations: 2.645 MB / 0.5938 GB, free: 5.711 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00047/0.4566, allocations: 0.4937 MB / 0.5943 GB, free: 5.211 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001428/0.458, allocations: 0.8967 MB / 0.5951 GB, free: 4.301 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4582, allocations: 359.5 kB / 0.5955 GB, free: 3.945 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/0.4601, allocations: 1.359 MB / 0.5968 GB, free: 2.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004034/0.4641, allocations: 4.118 MB / 0.6008 GB, free: 13.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006779/0.4709, allocations: 5.96 MB / 0.6067 GB, free: 5.738 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.536e-05/0.471, allocations: 28 kB / 0.6067 GB, free: 5.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.009027/0.48, allocations: 5.286 MB / 0.6119 GB, free: 424 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.919e-05/0.4801, allocations: 48 kB / 0.6119 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/0.4802, allocations: 104 kB / 0.612 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001157/0.4804, allocations: 128 kB / 0.6121 GB, free: 144 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.4835, allocations: 0.9864 MB / 0.6131 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001574/0.4837, allocations: 191.3 kB / 0.6133 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/0.4871, allocations: 0.5956 MB / 0.6138 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006822/0.4879, allocations: 283.9 kB / 0.6141 GB, free: 14.08 MB / 462.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.003921/0.4918, allocations: 1.895 MB / 0.616 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000448/0.4922, allocations: 213.2 kB / 0.6162 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005403/0.4928, allocations: 267.4 kB / 0.6164 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-05/0.4928, allocations: 17.97 kB / 0.6164 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.4929, allocations: 0 / 0.6164 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.4929, allocations: 3.984 kB / 0.6164 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.5037, allocations: 5.618 MB / 0.6219 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.5037, allocations: 4 kB / 0.6219 GB, free: 5.938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007351/0.5045, allocations: 135.8 kB / 0.6221 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.484e-05/0.5045, allocations: 16.48 kB / 0.6221 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/0.5046, allocations: 27.98 kB / 0.6221 GB, free: 5.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/0.5046, allocations: 4 kB / 0.6221 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.5046, allocations: 8 kB / 0.6221 GB, free: 5.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.507, allocations: 1.792 MB / 0.6239 GB, free: 3.883 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006005/0.5077, allocations: 286 kB / 0.6241 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.5079, allocations: 19.98 kB / 0.6242 GB, free: 3.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008434/0.5087, allocations: 35.95 kB / 0.6242 GB, free: 3.527 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.5089, allocations: 68.36 kB / 0.6243 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-05/0.509, allocations: 40 kB / 0.6243 GB, free: 3.422 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00235/0.5113, allocations: 1.556 MB / 0.6258 GB, free: 1.852 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5113, allocations: 0 / 0.6258 GB, free: 1.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0038/0.5151, allocations: 1.013 MB / 0.6268 GB, free: 0.8359 MB / 462.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.002651/0.5178, allocations: 2.434 MB / 0.6292 GB, free: 14.33 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.5223, allocations: 3.151 MB / 0.6323 GB, free: 11.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5223, allocations: 320 / 0.6323 GB, free: 11.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008455/0.5232, allocations: 0.7413 MB / 0.633 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.5243, allocations: 259 kB / 0.6332 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03617/0.5605, allocations: 29.26 MB / 0.6618 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/0.5639, allocations: 2.962 MB / 0.6647 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003261/0.5671, allocations: 1.488 MB / 0.6662 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/0.5691, allocations: 1.515 MB / 0.6676 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of SimCode: time 8.61e-07/0.5692, allocations: 0 / 0.6676 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.6695, allocations: 39.06 MB / 0.7058 GB, free: 12.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.58, allocations: 0 / 0.7058 GB, free: 12.04 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)