Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 226.6 MB / 243.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008506/0.0008507, allocations: 96.08 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4227/0.4227, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4781/0.4785, allocations: 62.96 MB / 0.5159 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.02539/0.504, allocations: 34.13 MB / 0.5492 GB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01845/0.5225, allocations: 7.232 MB / 0.5563 GB, free: 7.949 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008883/0.5314, allocations: 152 kB / 0.5564 GB, free: 7.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006015/0.5375, allocations: 1.513 MB / 0.5579 GB, free: 7.395 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01737/0.5549, allocations: 4.416 MB / 0.5622 GB, free: 5.586 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003136/0.5581, allocations: 278.4 kB / 0.5625 GB, free: 5.469 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00676/0.5648, allocations: 2.737 MB / 0.5651 GB, free: 4.551 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007103/0.572, allocations: 3.238 MB / 0.5683 GB, free: 2.637 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.5745, allocations: 0.6894 MB / 0.569 GB, free: 2.289 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002791/0.5773, allocations: 1.029 MB / 0.57 GB, free: 1.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008029/0.5781, allocations: 88.66 kB / 0.5701 GB, free: 1.758 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.5801, allocations: 0.6239 MB / 0.5707 GB, free: 1.133 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.5816, allocations: 0.9895 MB / 0.5716 GB, free: 144 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002306/0.5839, allocations: 1.143 MB / 0.5728 GB, free: 14.98 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006623/0.5906, allocations: 3.429 MB / 0.5761 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.5906, allocations: 0 / 0.5761 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.5907, allocations: 0 / 0.5761 GB, free: 11.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002081/0.5909, allocations: 0 / 0.5761 GB, free: 11.55 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.008088/0.599, allocations: 2.424 MB / 0.5785 GB, free: 9.066 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.5991, allocations: 12.88 kB / 0.5785 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007738/0.6068, allocations: 1.627 MB / 0.5801 GB, free: 7.422 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004675/0.6116, allocations: 1.34 MB / 0.5814 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.6118, allocations: 155.8 kB / 0.5815 GB, free: 5.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009604/0.6128, allocations: 187.9 kB / 0.5817 GB, free: 5.703 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/0.6272, allocations: 6.417 MB / 0.588 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.43e-05/0.6274, allocations: 11.88 kB / 0.588 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006262/0.628, allocations: 95.89 kB / 0.5881 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0024/0.6304, allocations: 1.403 MB / 0.5894 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.642, allocations: 5.46 MB / 0.5948 GB, free: 8.023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03255/0.6746, allocations: 20.61 MB / 0.6149 GB, free: 2.832 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004288/0.679, allocations: 2.001 MB / 0.6169 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.6801, allocations: 0.6939 MB / 0.6175 GB, free: 4 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007106/0.6872, allocations: 3.631 MB / 0.6211 GB, free: 12.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.6873, allocations: 46.92 kB / 0.6211 GB, free: 12.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 3.987e-06/0.6873, allocations: 0 / 0.6211 GB, free: 12.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=78): time 0.005294/0.6926, allocations: 1.974 MB / 0.6231 GB, free: 10.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.6927, allocations: 55.84 kB / 0.6231 GB, free: 10.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/0.6961, allocations: 1.954 MB / 0.625 GB, free: 8.172 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.6962, allocations: 33.7 kB / 0.6251 GB, free: 8.133 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.6977, allocations: 1.883 MB / 0.6269 GB, free: 6.219 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.6981, allocations: 312.1 kB / 0.6272 GB, free: 5.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.6982, allocations: 60 kB / 0.6272 GB, free: 5.852 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003474/0.6986, allocations: 497.3 kB / 0.6277 GB, free: 5.355 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.7, allocations: 0.8803 MB / 0.6286 GB, free: 4.473 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002658/0.7027, allocations: 2.762 MB / 0.6313 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004283/0.707, allocations: 3.982 MB / 0.6352 GB, free: 11.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-05/0.707, allocations: 20 kB / 0.6352 GB, free: 11.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005914/0.713, allocations: 3.534 MB / 0.6386 GB, free: 8.285 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.476e-05/0.713, allocations: 36 kB / 0.6387 GB, free: 8.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.99e-05/0.7132, allocations: 67.98 kB / 0.6387 GB, free: 8.184 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-05/0.7133, allocations: 88 kB / 0.6388 GB, free: 8.098 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/0.7152, allocations: 0.6589 MB / 0.6395 GB, free: 7.438 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001129/0.7153, allocations: 131.5 kB / 0.6396 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.7171, allocations: 420 kB / 0.64 GB, free: 6.895 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.7174, allocations: 199.9 kB / 0.6402 GB, free: 6.699 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.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 (365): * Single equations (assignments): 360 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002037/0.7194, allocations: 1.373 MB / 0.6415 GB, free: 5.316 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.7196, allocations: 157.9 kB / 0.6417 GB, free: 5.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003365/0.72, allocations: 197.2 kB / 0.6419 GB, free: 4.961 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/0.72, allocations: 12 kB / 0.6419 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.72, allocations: 0 / 0.6419 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.72, allocations: 3.984 kB / 0.6419 GB, free: 4.945 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/0.7259, allocations: 4.089 MB / 0.6459 GB, free: 0.707 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.726, allocations: 16.14 kB / 0.6459 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.7264, allocations: 99.83 kB / 0.646 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.148e-05/0.7264, allocations: 8 kB / 0.646 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.7265, allocations: 23.98 kB / 0.646 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.7265, allocations: 8 kB / 0.646 GB, free: 0.5547 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.7265, allocations: 11.94 kB / 0.646 GB, free: 0.543 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.7279, allocations: 1.262 MB / 0.6473 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.7283, allocations: 258.7 kB / 0.6475 GB, free: 14.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.7284, allocations: 23.98 kB / 0.6475 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.7289, allocations: 31.88 kB / 0.6476 GB, free: 14.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/0.729, allocations: 55.77 kB / 0.6476 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.729, allocations: 28 kB / 0.6476 GB, free: 14.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001762/0.7308, allocations: 1.279 MB / 0.6489 GB, free: 13.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7308, allocations: 0 / 0.6489 GB, free: 13.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00267/0.7335, allocations: 0.6999 MB / 0.6496 GB, free: 12.79 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003886/0.7339, allocations: 143.5 kB / 0.6497 GB, free: 12.64 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.7371, allocations: 2.03 MB / 0.6517 GB, free: 10.63 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.7371, allocations: 4.5 kB / 0.6517 GB, free: 10.63 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.7377, allocations: 459.9 kB / 0.6521 GB, free: 10.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.7401, allocations: 233.8 kB / 0.6524 GB, free: 9.953 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.7525, allocations: 6.611 MB / 0.6588 GB, free: 3.227 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003392/0.7559, allocations: 2.328 MB / 0.6611 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005786/0.7565, allocations: 147.4 kB / 0.6612 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of SimCode: time 3.206e-06/0.7566, allocations: 0 / 0.6612 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of Templates: time 0.2733/1.03, allocations: 30 MB / 0.6905 GB, free: 125.2 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches