Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001591/0.001591, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 241.8 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2072/0.2072, allocations: 44.17 MB / 336.1 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 66.73 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1325, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03735/0.1699, allocations: 37.69 MB / 0.4943 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02274/0.1927, allocations: 7.575 MB / 0.5017 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009702/0.2024, allocations: 155.7 kB / 0.5019 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3031/0.5055, allocations: 1.988 MB / 0.5038 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004175/0.5098, allocations: 1.072 MB / 0.5049 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009464/0.5108, allocations: 263.4 kB / 0.5051 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006453/0.5172, allocations: 3.403 MB / 0.5084 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005291/0.5226, allocations: 2.323 MB / 0.5107 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.5251, allocations: 0.7969 MB / 0.5115 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003288/0.5284, allocations: 1.242 MB / 0.5127 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001187/0.5296, allocations: 154 kB / 0.5129 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.532, allocations: 0.6963 MB / 0.5135 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002111/0.5342, allocations: 1.113 MB / 0.5146 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002914/0.5371, allocations: 1.303 MB / 0.5159 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006108/0.5432, allocations: 4.253 MB / 0.52 GB, free: 8.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.5433, allocations: 0 / 0.52 GB, free: 8.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5433, allocations: 0 / 0.52 GB, free: 8.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001594/0.5434, allocations: 0 / 0.52 GB, free: 8.871 MB / 382.1 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.007598/0.551, allocations: 2.946 MB / 0.5229 GB, free: 7.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.5511, allocations: 9.375 kB / 0.5229 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.5561, allocations: 1.584 MB / 0.5245 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002951/0.5591, allocations: 1.347 MB / 0.5258 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.74e-05/0.5592, allocations: 145.8 kB / 0.5259 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/0.5596, allocations: 193.1 kB / 0.5261 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.5697, allocations: 6.434 MB / 0.5324 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.5697, allocations: 13.03 kB / 0.5324 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002598/0.57, allocations: 89.89 kB / 0.5325 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001769/0.5718, allocations: 1.404 MB / 0.5339 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/0.5821, allocations: 5.486 MB / 0.5392 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03328/0.6154, allocations: 20.61 MB / 0.5594 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004469/0.6199, allocations: 2.002 MB / 0.5613 GB, free: 7.078 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.621, allocations: 0.6929 MB / 0.562 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006579/0.6276, allocations: 3.638 MB / 0.5655 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.6277, allocations: 42.94 kB / 0.5656 GB, free: 2.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.997e-06/0.6277, allocations: 0 / 0.5656 GB, free: 2.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005459/0.6331, allocations: 1.988 MB / 0.5675 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.6332, allocations: 55.84 kB / 0.5676 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003087/0.6363, allocations: 1.962 MB / 0.5695 GB, free: 14.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.894e-05/0.6364, allocations: 36.8 kB / 0.5695 GB, free: 14.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.6378, allocations: 1.893 MB / 0.5714 GB, free: 12.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.6381, allocations: 309.6 kB / 0.5717 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008096/0.6389, allocations: 0.6262 MB / 0.5723 GB, free: 11.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.6391, allocations: 353.9 kB / 0.5726 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.6404, allocations: 0.8842 MB / 0.5735 GB, free: 10.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.643, allocations: 2.778 MB / 0.5762 GB, free: 6.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004758/0.6478, allocations: 3.988 MB / 0.5801 GB, free: 2.117 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-05/0.6479, allocations: 20 kB / 0.5801 GB, free: 2.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005981/0.6539, allocations: 3.558 MB / 0.5836 GB, free: 14.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.042e-05/0.6539, allocations: 32 kB / 0.5836 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.634e-05/0.654, allocations: 71.98 kB / 0.5837 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.447e-05/0.6541, allocations: 89.47 kB / 0.5838 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.6559, allocations: 0.6585 MB / 0.5844 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001001/0.656, allocations: 137.7 kB / 0.5845 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.658, allocations: 411.5 kB / 0.5849 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.6583, allocations: 192 kB / 0.5851 GB, free: 13.45 MB / 446.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002545/0.6608, allocations: 1.375 MB / 0.5865 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003286/0.6612, allocations: 157.9 kB / 0.5866 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000346/0.6615, allocations: 208.8 kB / 0.5868 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.6616, allocations: 8 kB / 0.5868 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.6616, allocations: 0 / 0.5868 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.6616, allocations: 7.984 kB / 0.5868 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00667/0.6683, allocations: 4.095 MB / 0.5908 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.6683, allocations: 11.98 kB / 0.5908 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.6688, allocations: 103.1 kB / 0.5909 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/0.6688, allocations: 8 kB / 0.5909 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.197e-05/0.6688, allocations: 27.42 kB / 0.591 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.405e-05/0.6689, allocations: 10.91 kB / 0.591 GB, free: 7.418 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.6689, allocations: 10.72 kB / 0.591 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.6706, allocations: 1.268 MB / 0.5922 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/0.6712, allocations: 246.8 kB / 0.5925 GB, free: 5.785 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.6714, allocations: 23.98 kB / 0.5925 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.6718, allocations: 23.98 kB / 0.5925 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.672, allocations: 57.17 kB / 0.5926 GB, free: 5.688 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.6721, allocations: 35.98 kB / 0.5926 GB, free: 5.652 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001901/0.674, allocations: 1.283 MB / 0.5939 GB, free: 4.379 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.674, allocations: 0 / 0.5939 GB, free: 4.379 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003553/0.6776, allocations: 0.7097 MB / 0.5945 GB, free: 3.668 MB / 446.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.0004422/0.678, allocations: 150.5 kB / 0.5947 GB, free: 3.523 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.6814, allocations: 2.032 MB / 0.5967 GB, free: 1.688 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6815, allocations: 0 / 0.5967 GB, free: 1.688 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005755/0.682, allocations: 462.8 kB / 0.5971 GB, free: 1.258 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.6834, allocations: 233 kB / 0.5973 GB, free: 1.031 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.6939, allocations: 6.549 MB / 0.6037 GB, free: 10.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002386/0.6963, allocations: 2.316 MB / 0.606 GB, free: 8.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002367/0.6987, allocations: 0.9717 MB / 0.6069 GB, free: 7.062 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.699, allocations: 115.4 kB / 0.6071 GB, free: 6.949 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.699, allocations: 0 / 0.6071 GB, free: 6.949 MB / 462.1 MB Notification: Performance of Templates: time 0.02887/0.7279, allocations: 13.94 MB / 0.6207 GB, free: 9.102 MB / 478.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches