Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001647, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2298/0.2298, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002331/0.002331, allocations: 79.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3295, allocations: 62.43 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.0132/0.3428, allocations: 11.26 MB / 0.5416 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006497/0.3493, allocations: 2.808 MB / 0.5443 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.3511, allocations: 56.28 kB / 0.5444 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003105/0.3542, allocations: 1.325 MB / 0.5457 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.3579, allocations: 1.205 MB / 0.5468 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.3584, allocations: 90.95 kB / 0.5469 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004002/0.3624, allocations: 2.717 MB / 0.5496 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002613/0.3651, allocations: 1.844 MB / 0.5514 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.367, allocations: 1.051 MB / 0.5524 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.3691, allocations: 1.436 MB / 0.5538 GB, free: 9.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005934/0.3697, allocations: 215.9 kB / 0.554 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.371, allocations: 0.4954 MB / 0.5545 GB, free: 9.141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.3726, allocations: 1.383 MB / 0.5558 GB, free: 7.754 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.3747, allocations: 1.692 MB / 0.5575 GB, free: 6.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006526/0.3813, allocations: 5.452 MB / 0.5628 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3813, allocations: 0 / 0.5628 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3813, allocations: 0 / 0.5628 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001298/0.3815, allocations: 0 / 0.5628 GB, free: 0.5781 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.006527/0.388, allocations: 3.676 MB / 0.5664 GB, free: 12.83 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3881, allocations: 8.031 kB / 0.5664 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/0.3892, allocations: 0.6709 MB / 0.5671 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/0.3996, allocations: 2.966 MB / 0.57 GB, free: 9.172 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003337/0.403, allocations: 1.53 MB / 0.5715 GB, free: 7.598 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.4032, allocations: 172.6 kB / 0.5716 GB, free: 7.426 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007627/0.404, allocations: 231.8 kB / 0.5719 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.4208, allocations: 9.476 MB / 0.5811 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.99e-05/0.421, allocations: 19.81 kB / 0.5811 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004113/0.4214, allocations: 107.8 kB / 0.5812 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004103/0.4255, allocations: 2.365 MB / 0.5835 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.4431, allocations: 8.668 MB / 0.592 GB, free: 2.168 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0483/0.4914, allocations: 29.16 MB / 0.6205 GB, free: 4.203 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006046/0.4975, allocations: 3.051 MB / 0.6235 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.4991, allocations: 0.9727 MB / 0.6244 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009228/0.5084, allocations: 4.854 MB / 0.6292 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/0.5085, allocations: 39.22 kB / 0.6292 GB, free: 10.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=126): time 3.908e-06/0.5085, allocations: 3.938 kB / 0.6292 GB, free: 10.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=126): time 0.006455/0.5149, allocations: 2.749 MB / 0.6319 GB, free: 8.039 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.515, allocations: 60.06 kB / 0.6319 GB, free: 7.969 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.5191, allocations: 2.566 MB / 0.6344 GB, free: 5.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.5193, allocations: 37.7 kB / 0.6345 GB, free: 5.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002407/0.5217, allocations: 2.759 MB / 0.6372 GB, free: 2.547 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006429/0.5224, allocations: 0.5117 MB / 0.6377 GB, free: 2.031 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/0.5237, allocations: 0.9052 MB / 0.6386 GB, free: 1.113 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003133/0.524, allocations: 361.9 kB / 0.6389 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/0.5263, allocations: 1.359 MB / 0.6402 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004779/0.5311, allocations: 4.118 MB / 0.6442 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007882/0.539, allocations: 5.96 MB / 0.6501 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-05/0.5391, allocations: 28 kB / 0.6501 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01025/0.5494, allocations: 5.299 MB / 0.6553 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.603e-05/0.5495, allocations: 51.31 kB / 0.6553 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/0.5497, allocations: 103.9 kB / 0.6554 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.5498, allocations: 132 kB / 0.6555 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003157/0.553, allocations: 0.9708 MB / 0.6565 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001863/0.5532, allocations: 191.2 kB / 0.6567 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/0.5562, allocations: 0.6166 MB / 0.6573 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005775/0.5568, allocations: 272 kB / 0.6575 GB, free: 10.89 MB / 0.5137 GB 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.003561/0.5604, allocations: 1.895 MB / 0.6594 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004686/0.5609, allocations: 234.4 kB / 0.6596 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005655/0.5615, allocations: 267.3 kB / 0.6599 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.667e-05/0.5615, allocations: 16 kB / 0.6599 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.5615, allocations: 0 / 0.6599 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.5616, allocations: 3.984 kB / 0.6599 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.5718, allocations: 5.619 MB / 0.6654 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.5719, allocations: 4 kB / 0.6654 GB, free: 2.715 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006259/0.5725, allocations: 131.8 kB / 0.6655 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.536e-05/0.5725, allocations: 8 kB / 0.6655 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.96e-05/0.5726, allocations: 23.98 kB / 0.6655 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-05/0.5726, allocations: 15.92 kB / 0.6655 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5726, allocations: 4 kB / 0.6656 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.5752, allocations: 1.797 MB / 0.6673 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006041/0.5759, allocations: 303.3 kB / 0.6676 GB, free: 356 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.5761, allocations: 16 kB / 0.6676 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006052/0.5767, allocations: 43.94 kB / 0.6677 GB, free: 296 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.5769, allocations: 56.44 kB / 0.6677 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/0.577, allocations: 47.86 kB / 0.6678 GB, free: 192 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002813/0.5798, allocations: 1.556 MB / 0.6693 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5798, allocations: 0 / 0.6693 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004345/0.5842, allocations: 1.012 MB / 0.6703 GB, free: 13.6 MB / 0.5294 GB 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.003417/0.5876, allocations: 2.44 MB / 0.6726 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0061/0.5937, allocations: 3.151 MB / 0.6757 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.5938, allocations: 4 kB / 0.6757 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.5949, allocations: 0.7389 MB / 0.6764 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.5964, allocations: 262.8 kB / 0.6767 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04966/0.6461, allocations: 29.38 MB / 0.7054 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004088/0.6502, allocations: 2.965 MB / 0.7083 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003351/0.6536, allocations: 1.484 MB / 0.7097 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002387/0.656, allocations: 1.507 MB / 0.7112 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of SimCode: time 1.162e-06/0.6561, allocations: 0 / 0.7112 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3223/0.9784, allocations: 38.51 MB / 0.7488 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.83, allocations: 3.766 kB / 0.7488 GB, free: 173.1 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)