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.0008442/0.0008442, allocations: 90.77 kB / 18 MB, free: 5.34 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.0009249/0.0009249, allocations: 174.2 kB / 18.91 MB, free: 4.613 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.332/1.332, allocations: 223.3 MB / 243 MB, free: 172 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1819/0.1819, allocations: 44.24 MB / 338.3 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003214/0.0003214, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 61.91 MB / 472.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03396/0.1415, allocations: 36.64 MB / 0.4976 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.1593, allocations: 7.529 MB / 0.505 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006657/0.166, allocations: 151.7 kB / 0.5051 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.1672, allocations: 298.6 kB / 0.5054 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2315/0.3986, allocations: 1.065 MB / 0.5064 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009958/0.3997, allocations: 272.4 kB / 0.5067 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005311/0.405, allocations: 3.403 MB / 0.51 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005838/0.4109, allocations: 3.341 MB / 0.5133 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.4126, allocations: 0.6476 MB / 0.5139 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.415, allocations: 1.057 MB / 0.5149 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000664/0.4157, allocations: 87.86 kB / 0.515 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.4177, allocations: 0.6376 MB / 0.5156 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001719/0.4195, allocations: 1.022 MB / 0.5166 GB, free: 10 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00253/0.422, allocations: 1.219 MB / 0.5178 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005128/0.4272, allocations: 3.421 MB / 0.5212 GB, free: 9.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4272, allocations: 0 / 0.5212 GB, free: 9.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4272, allocations: 0 / 0.5212 GB, free: 9.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001985/0.4274, allocations: 1.375 kB / 0.5212 GB, free: 9.023 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.006108/0.4335, allocations: 2.416 MB / 0.5235 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.4336, allocations: 9.625 kB / 0.5235 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005778/0.4394, allocations: 1.631 MB / 0.5251 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002773/0.4422, allocations: 1.347 MB / 0.5264 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.4423, allocations: 149.6 kB / 0.5266 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007606/0.4431, allocations: 188.6 kB / 0.5268 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00924/0.4523, allocations: 6.44 MB / 0.5331 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.4524, allocations: 13.59 kB / 0.5331 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002309/0.4527, allocations: 88.33 kB / 0.5332 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001877/0.4545, allocations: 1.406 MB / 0.5345 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009116/0.4637, allocations: 5.487 MB / 0.5399 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03064/0.4944, allocations: 20.61 MB / 0.56 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004571/0.499, allocations: 2.013 MB / 0.562 GB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.5001, allocations: 0.699 MB / 0.5627 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0071/0.5073, allocations: 3.635 MB / 0.5662 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.5074, allocations: 39 kB / 0.5662 GB, free: 4.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 6.813e-06/0.5074, allocations: 4 kB / 0.5662 GB, free: 4.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005777/0.5132, allocations: 1.981 MB / 0.5682 GB, free: 2.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.5133, allocations: 59.84 kB / 0.5682 GB, free: 2.781 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003855/0.5171, allocations: 1.966 MB / 0.5702 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.5173, allocations: 36.52 kB / 0.5702 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001719/0.519, allocations: 1.88 MB / 0.572 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004684/0.5195, allocations: 314.8 kB / 0.5723 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005059/0.52, allocations: 276.2 kB / 0.5726 GB, free: 14.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.5202, allocations: 353.9 kB / 0.5729 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.5218, allocations: 0.8959 MB / 0.5738 GB, free: 13.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002928/0.5247, allocations: 2.769 MB / 0.5765 GB, free: 9.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0047/0.5294, allocations: 4.003 MB / 0.5804 GB, free: 4.715 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.034e-05/0.5295, allocations: 20 kB / 0.5804 GB, free: 4.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006945/0.5365, allocations: 3.544 MB / 0.5839 GB, free: 1.551 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.401e-05/0.5366, allocations: 36 kB / 0.5839 GB, free: 1.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.5368, allocations: 64.84 kB / 0.584 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.5369, allocations: 88 kB / 0.5841 GB, free: 1.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/0.5391, allocations: 0.6662 MB / 0.5847 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000113/0.5392, allocations: 133.7 kB / 0.5849 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/0.5416, allocations: 419.5 kB / 0.5853 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004761/0.5421, allocations: 192 kB / 0.5854 GB, free: 60 kB / 430.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.002824/0.545, allocations: 1.367 MB / 0.5868 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.5453, allocations: 169.7 kB / 0.5869 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005187/0.5458, allocations: 197.2 kB / 0.5871 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/0.5459, allocations: 11.94 kB / 0.5871 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.5459, allocations: 0 / 0.5871 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5459, allocations: 0 / 0.5871 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/0.5542, allocations: 4.1 MB / 0.5911 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/0.5543, allocations: 6.719 kB / 0.5911 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004524/0.5547, allocations: 101.2 kB / 0.5912 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/0.5547, allocations: 12 kB / 0.5913 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/0.5548, allocations: 22.62 kB / 0.5913 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.276e-05/0.5548, allocations: 10.62 kB / 0.5913 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/0.5548, allocations: 18.78 kB / 0.5913 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.5566, allocations: 1.263 MB / 0.5925 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000599/0.5572, allocations: 266.6 kB / 0.5928 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003678/0.5576, allocations: 26.64 kB / 0.5928 GB, free: 8.352 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/0.5583, allocations: 23.98 kB / 0.5928 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.5584, allocations: 57.08 kB / 0.5929 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.899e-05/0.5585, allocations: 31.98 kB / 0.5929 GB, free: 8.246 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002529/0.561, allocations: 1.287 MB / 0.5942 GB, free: 6.969 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5611, allocations: 0 / 0.5942 GB, free: 6.969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003394/0.5645, allocations: 0.7073 MB / 0.5949 GB, free: 6.262 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.0004634/0.5649, allocations: 149.2 kB / 0.595 GB, free: 6.117 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003684/0.5686, allocations: 2.034 MB / 0.597 GB, free: 4.277 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.5687, allocations: 0 / 0.597 GB, free: 4.277 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.5694, allocations: 462.6 kB / 0.5974 GB, free: 3.848 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/0.5727, allocations: 236.2 kB / 0.5977 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.5854, allocations: 6.876 MB / 0.6044 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003477/0.589, allocations: 2.326 MB / 0.6067 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.5895, allocations: 147.4 kB / 0.6068 GB, free: 10.14 MB / 462.1 MB Notification: Performance of SimCode: time 1.452e-06/0.5895, allocations: 3.938 kB / 0.6068 GB, free: 10.14 MB / 462.1 MB Notification: Performance of Templates: time 0.04904/0.6386, allocations: 30.01 MB / 0.6361 GB, free: 12.19 MB / 494.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/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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches