Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.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.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 113.2 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001398, allocations: 204.6 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247 MB, free: 10.46 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.2235/0.2235, allocations: 46.11 MB / 344.4 MB, free: 11.47 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.002332/0.002332, allocations: 75.88 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3146, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01152/0.3262, allocations: 9.527 MB / 0.5399 GB, free: 5.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006483/0.3327, allocations: 2.921 MB / 0.5427 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001629/0.3343, allocations: 48.03 kB / 0.5428 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00406/0.3385, allocations: 1.998 MB / 0.5447 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003048/0.3415, allocations: 1.11 MB / 0.5458 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008095/0.3424, allocations: 282.4 kB / 0.5461 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003583/0.346, allocations: 2.336 MB / 0.5484 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002868/0.3488, allocations: 2.304 MB / 0.5506 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.3502, allocations: 0.88 MB / 0.5515 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.3518, allocations: 1.145 MB / 0.5526 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003845/0.3522, allocations: 196 kB / 0.5528 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.3535, allocations: 0.6982 MB / 0.5535 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.3546, allocations: 1.103 MB / 0.5546 GB, free: 9.109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.356, allocations: 1.305 MB / 0.5558 GB, free: 7.797 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005355/0.3614, allocations: 4.339 MB / 0.5601 GB, free: 3.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3614, allocations: 0 / 0.5601 GB, free: 3.441 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3615, allocations: 0 / 0.5601 GB, free: 3.441 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.679e-05/0.3616, allocations: 0 / 0.5601 GB, free: 3.441 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: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.005114/0.3667, allocations: 2.938 MB / 0.5629 GB, free: 452 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3667, allocations: 8.031 kB / 0.5629 GB, free: 444 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005882/0.3673, allocations: 483.2 kB / 0.5634 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005054/0.3724, allocations: 1.582 MB / 0.5649 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.3748, allocations: 1.344 MB / 0.5663 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.375, allocations: 151.7 kB / 0.5664 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000347/0.3753, allocations: 187.9 kB / 0.5666 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009474/0.3848, allocations: 6.238 MB / 0.5727 GB, free: 6.133 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.999e-05/0.3849, allocations: 19.86 kB / 0.5727 GB, free: 6.113 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002381/0.3851, allocations: 87.91 kB / 0.5728 GB, free: 6.027 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002158/0.3873, allocations: 1.34 MB / 0.5741 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009935/0.3973, allocations: 5.333 MB / 0.5793 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02697/0.4243, allocations: 20.08 MB / 0.5989 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004169/0.4285, allocations: 2.006 MB / 0.6009 GB, free: 8.555 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009945/0.4295, allocations: 0.6953 MB / 0.6015 GB, free: 7.855 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006253/0.4357, allocations: 3.613 MB / 0.6051 GB, free: 4.098 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.4358, allocations: 42.94 kB / 0.6051 GB, free: 4.047 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 2.906e-06/0.4358, allocations: 3.938 kB / 0.6051 GB, free: 4.043 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005392/0.4412, allocations: 1.994 MB / 0.6071 GB, free: 2.039 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.4413, allocations: 55.84 kB / 0.6071 GB, free: 1.973 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.444, allocations: 1.942 MB / 0.609 GB, free: 28 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.253e-05/0.444, allocations: 37.7 kB / 0.609 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.4454, allocations: 1.903 MB / 0.6109 GB, free: 14.06 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.4457, allocations: 329.5 kB / 0.6112 GB, free: 13.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007664/0.4465, allocations: 0.6234 MB / 0.6118 GB, free: 13.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.4467, allocations: 357.9 kB / 0.6122 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.448, allocations: 0.8842 MB / 0.613 GB, free: 11.86 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002855/0.4509, allocations: 2.755 MB / 0.6157 GB, free: 8.172 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.4555, allocations: 3.962 MB / 0.6196 GB, free: 3.285 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.142e-05/0.4555, allocations: 24 kB / 0.6196 GB, free: 3.262 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005389/0.4609, allocations: 3.532 MB / 0.6231 GB, free: 15.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.461, allocations: 32 kB / 0.6231 GB, free: 15.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-05/0.4611, allocations: 68 kB / 0.6232 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-05/0.4612, allocations: 96 kB / 0.6233 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/0.463, allocations: 0.655 MB / 0.6239 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001079/0.4631, allocations: 135.5 kB / 0.624 GB, free: 14.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.4648, allocations: 424.8 kB / 0.6244 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.4651, allocations: 184 kB / 0.6246 GB, free: 14.14 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[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 (362): * Single equations (assignments): 357 * Array equations: 5 * 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.001875/0.467, allocations: 1.342 MB / 0.6259 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.4672, allocations: 170.8 kB / 0.6261 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.4675, allocations: 196.9 kB / 0.6263 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.4676, allocations: 15.84 kB / 0.6263 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4676, allocations: 0 / 0.6263 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.4676, allocations: 7.984 kB / 0.6263 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006042/0.4736, allocations: 4.025 MB / 0.6302 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.4737, allocations: 8 kB / 0.6302 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.4741, allocations: 103.8 kB / 0.6303 GB, free: 8.121 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.4741, allocations: 8 kB / 0.6303 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.4742, allocations: 20 kB / 0.6303 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.22e-05/0.4742, allocations: 11.98 kB / 0.6304 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.815e-05/0.4742, allocations: 15.94 kB / 0.6304 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.4758, allocations: 1.283 MB / 0.6316 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003414/0.4762, allocations: 251.8 kB / 0.6319 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.4763, allocations: 19.98 kB / 0.6319 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004388/0.4768, allocations: 27.94 kB / 0.6319 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.89e-05/0.4769, allocations: 55.83 kB / 0.632 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.789e-05/0.477, allocations: 31.98 kB / 0.632 GB, free: 6.281 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001815/0.4788, allocations: 1.267 MB / 0.6332 GB, free: 5.023 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4788, allocations: 0 / 0.6332 GB, free: 5.023 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002301/0.4811, allocations: 0.689 MB / 0.6339 GB, free: 4.332 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * Array equations: 3 * 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.002044/0.4831, allocations: 1.877 MB / 0.6357 GB, free: 2.344 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003292/0.4864, allocations: 2.043 MB / 0.6377 GB, free: 328 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.4865, allocations: 5.938 kB / 0.6377 GB, free: 324 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006368/0.4871, allocations: 465.1 kB / 0.6382 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.4884, allocations: 247.4 kB / 0.6384 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02979/0.5182, allocations: 20.94 MB / 0.6589 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/0.5207, allocations: 2.275 MB / 0.6611 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002028/0.5227, allocations: 0.9519 MB / 0.662 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/0.524, allocations: 1.042 MB / 0.663 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/0.5241, allocations: 4 kB / 0.663 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06758/0.5916, allocations: 32.6 MB / 0.6949 GB, free: 3.367 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.06, allocations: 16.58 kB / 0.6949 GB, free: 3.359 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1)