Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_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.001712/0.001712, 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.002078/0.002078, 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.494/1.494, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002325, allocations: 79.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.318, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01155/0.3296, allocations: 9.528 MB / 0.5399 GB, free: 5.898 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006591/0.3363, allocations: 2.921 MB / 0.5428 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.3381, allocations: 51.53 kB / 0.5428 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004136/0.3422, allocations: 1.991 MB / 0.5448 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00313/0.3455, allocations: 1.118 MB / 0.5459 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008524/0.3463, allocations: 285.2 kB / 0.5461 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003748/0.3501, allocations: 2.324 MB / 0.5484 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003061/0.3532, allocations: 2.312 MB / 0.5507 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.3548, allocations: 0.8761 MB / 0.5515 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.3566, allocations: 1.149 MB / 0.5526 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005481/0.3571, allocations: 196 kB / 0.5528 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.3587, allocations: 0.6943 MB / 0.5535 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001343/0.36, allocations: 1.103 MB / 0.5546 GB, free: 9.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.3619, allocations: 1.308 MB / 0.5558 GB, free: 7.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005698/0.3676, allocations: 4.334 MB / 0.5601 GB, free: 3.387 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.3677, allocations: 0 / 0.5601 GB, free: 3.387 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3677, allocations: 4 kB / 0.5601 GB, free: 3.383 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001376/0.3678, allocations: 0 / 0.5601 GB, free: 3.383 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.006784/0.3746, allocations: 2.934 MB / 0.563 GB, free: 396 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3747, allocations: 11.97 kB / 0.563 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000959/0.3756, allocations: 483.1 kB / 0.5634 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/0.381, allocations: 1.578 MB / 0.565 GB, free: 14.31 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/0.3841, allocations: 1.34 MB / 0.5663 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.3843, allocations: 147.8 kB / 0.5664 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007664/0.3851, allocations: 187.9 kB / 0.5666 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.3967, allocations: 6.238 MB / 0.5727 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.689e-05/0.3968, allocations: 15.88 kB / 0.5727 GB, free: 6.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004287/0.3972, allocations: 87.91 kB / 0.5728 GB, free: 5.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002294/0.3995, allocations: 1.348 MB / 0.5741 GB, free: 4.633 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.4105, allocations: 5.333 MB / 0.5793 GB, free: 15.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02948/0.44, allocations: 20.08 MB / 0.5989 GB, free: 10.63 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004353/0.4444, allocations: 2.003 MB / 0.6009 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.4455, allocations: 0.6953 MB / 0.6016 GB, free: 7.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006799/0.4523, allocations: 3.613 MB / 0.6051 GB, free: 4.043 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/0.4524, allocations: 46.98 kB / 0.6051 GB, free: 3.988 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.819e-06/0.4524, allocations: 0 / 0.6051 GB, free: 3.988 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005687/0.4581, allocations: 1.986 MB / 0.6071 GB, free: 1.992 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.4582, allocations: 59.84 kB / 0.6071 GB, free: 1.922 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002927/0.4612, allocations: 1.946 MB / 0.609 GB, free: 15.97 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.4613, allocations: 41.69 kB / 0.6091 GB, free: 15.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.4628, allocations: 1.911 MB / 0.6109 GB, free: 13.99 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/0.4632, allocations: 321.5 kB / 0.6112 GB, free: 13.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008613/0.464, allocations: 0.6195 MB / 0.6118 GB, free: 13.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.4643, allocations: 357.9 kB / 0.6122 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.4657, allocations: 0.8881 MB / 0.6131 GB, free: 11.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002903/0.4686, allocations: 2.755 MB / 0.6157 GB, free: 8.113 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004817/0.4734, allocations: 3.968 MB / 0.6196 GB, free: 3.223 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.674e-05/0.4735, allocations: 20 kB / 0.6196 GB, free: 3.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006493/0.48, allocations: 3.531 MB / 0.6231 GB, free: 15.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.4801, allocations: 32 kB / 0.6231 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-05/0.4802, allocations: 68 kB / 0.6232 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001032/0.4803, allocations: 91.94 kB / 0.6233 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/0.4824, allocations: 0.6511 MB / 0.6239 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001209/0.4826, allocations: 135.4 kB / 0.624 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.4846, allocations: 425.3 kB / 0.6244 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.485, allocations: 192 kB / 0.6246 GB, free: 14.09 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.002208/0.4872, allocations: 1.338 MB / 0.6259 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002935/0.4875, allocations: 166.9 kB / 0.6261 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/0.4879, allocations: 196.9 kB / 0.6263 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/0.488, allocations: 19.88 kB / 0.6263 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.488, allocations: 7.938 kB / 0.6263 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.488, allocations: 3.984 kB / 0.6263 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007054/0.4951, allocations: 4.017 MB / 0.6302 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.4951, allocations: 8 kB / 0.6302 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.4956, allocations: 107.9 kB / 0.6303 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/0.4956, allocations: 8 kB / 0.6303 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.4956, allocations: 20 kB / 0.6304 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.298e-05/0.4957, allocations: 11.94 kB / 0.6304 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.4957, allocations: 8 kB / 0.6304 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.4974, allocations: 1.275 MB / 0.6316 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/0.4979, allocations: 255.8 kB / 0.6319 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.4981, allocations: 16 kB / 0.6319 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005016/0.4986, allocations: 39.91 kB / 0.6319 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.4987, allocations: 55.77 kB / 0.632 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.4988, allocations: 28 kB / 0.632 GB, free: 6.234 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.5009, allocations: 1.271 MB / 0.6332 GB, free: 4.973 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.501, allocations: 0 / 0.6332 GB, free: 4.973 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002662/0.5036, allocations: 0.6929 MB / 0.6339 GB, free: 4.277 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.00225/0.5059, allocations: 1.873 MB / 0.6358 GB, free: 2.293 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003426/0.5094, allocations: 2.05 MB / 0.6378 GB, free: 268 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.5094, allocations: 4 kB / 0.6378 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006593/0.5101, allocations: 453.6 kB / 0.6382 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.5115, allocations: 268.5 kB / 0.6384 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03382/0.5454, allocations: 20.94 MB / 0.6589 GB, free: 8.07 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002735/0.5482, allocations: 2.275 MB / 0.6611 GB, free: 5.766 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.002172/0.5504, allocations: 0.9558 MB / 0.6621 GB, free: 4.805 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/0.5519, allocations: 1.042 MB / 0.6631 GB, free: 3.762 MB / 0.5138 GB Notification: Performance of SimCode: time 1.312e-06/0.5519, allocations: 0 / 0.6631 GB, free: 3.762 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0713/0.6232, allocations: 32.59 MB / 0.6949 GB, free: 3.297 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13, allocations: 8.172 kB / 0.6949 GB, free: 3.293 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches