Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.0017/0.0017, allocations: 191.4 kB / 17.86 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2062/0.2062, allocations: 43.52 MB / 314.6 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 65.69 kB / 383.4 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1055, allocations: 57.8 MB / 441.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01679/0.1223, allocations: 18 MB / 459.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.1365, allocations: 5.42 MB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004774/0.1413, allocations: 127.7 kB / 464.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.1531, allocations: 6.106 MB / 470.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00884/0.1621, allocations: 3.167 MB / 474 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004229/0.1663, allocations: 1.583 MB / 475.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0131/0.1794, allocations: 8.384 MB / 484 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01123/0.1907, allocations: 7.74 MB / 491.7 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00567/0.1964, allocations: 3.287 MB / 495 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006486/0.203, allocations: 4.323 MB / 499.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002478/0.2055, allocations: 0.668 MB / 500 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004257/0.2098, allocations: 1.471 MB / 0.4897 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005186/0.215, allocations: 3.963 MB / 0.4936 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007505/0.2225, allocations: 4.451 MB / 0.4979 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01677/0.2393, allocations: 13.16 MB / 0.5108 GB, free: 4.711 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.2394, allocations: 4 kB / 0.5108 GB, free: 4.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2394, allocations: 0 / 0.5108 GB, free: 4.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005365/0.2399, allocations: 0 / 0.5108 GB, free: 4.707 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.02481/0.2648, allocations: 9.524 MB / 0.5201 GB, free: 11.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.2648, allocations: 15.89 kB / 0.5201 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/0.2776, allocations: 2.711 MB / 0.5227 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.2896, allocations: 5.036 MB / 0.5277 GB, free: 3.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006616/0.2903, allocations: 492.1 kB / 0.5281 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003008/0.2933, allocations: 0.6089 MB / 0.5287 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4154/0.7087, allocations: 19.49 MB / 0.5478 GB, free: 74.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002571/0.709, allocations: 77.42 kB / 0.5478 GB, free: 74.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.7104, allocations: 300.2 kB / 0.5481 GB, free: 73.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005031/0.7154, allocations: 3.639 MB / 0.5517 GB, free: 72.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03009/0.7455, allocations: 15.17 MB / 0.5665 GB, free: 60.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08512/0.8307, allocations: 73.12 MB / 0.6379 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01718/0.848, allocations: 6.105 MB / 0.6439 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004194/0.8522, allocations: 2.547 MB / 0.6463 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0205/0.8727, allocations: 11.17 MB / 0.6572 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.472e-05/0.8728, allocations: 60.5 kB / 0.6573 GB, free: 13.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=250): time 5.099e-06/0.8728, allocations: 0 / 0.6573 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=274): time 0.04678/0.9196, allocations: 16.33 MB / 0.6733 GB, free: 13.05 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.9198, allocations: 166.5 kB / 0.6734 GB, free: 12.86 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01253/0.9323, allocations: 6.767 MB / 0.68 GB, free: 6.105 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005612/0.9329, allocations: 69.69 kB / 0.6801 GB, free: 6.031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004897/0.9378, allocations: 5.735 MB / 0.6857 GB, free: 224 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001429/0.9393, allocations: 1.049 MB / 0.6867 GB, free: 15.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002817/0.9421, allocations: 1.892 MB / 0.6886 GB, free: 13.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.9423, allocations: 305.1 kB / 0.6889 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005002/0.9473, allocations: 2.775 MB / 0.6916 GB, free: 10.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0101/0.9574, allocations: 8.662 MB / 0.7 GB, free: 14.57 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01678/0.9742, allocations: 12.44 MB / 0.7122 GB, free: 15.21 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002261/0.9745, allocations: 60 kB / 0.7122 GB, free: 15.15 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.02248/0.997, allocations: 11.12 MB / 0.7231 GB, free: 4.02 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002776/0.9973, allocations: 95.94 kB / 0.7232 GB, free: 3.926 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004005/0.9977, allocations: 208 kB / 0.7234 GB, free: 3.723 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004119/0.9981, allocations: 276 kB / 0.7236 GB, free: 3.453 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007818/1.006, allocations: 2.207 MB / 0.7258 GB, free: 1.242 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004494/1.006, allocations: 418.2 kB / 0.7262 GB, free: 0.8359 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007433/1.014, allocations: 459.5 kB / 0.7266 GB, free: 396 kB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2561/1.27, allocations: 0.5787 MB / 0.7272 GB, free: 164.2 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 951 * Number of states: 0 () * Number of discrete variables: 60 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1195): * Single equations (assignments): 1184 * Array equations: 11 * 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.008155/1.278, allocations: 3.757 MB / 0.7309 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/1.28, allocations: 0.586 MB / 0.7314 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005486/1.285, allocations: 2.987 MB / 0.7344 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-05/1.285, allocations: 29.45 kB / 0.7344 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/1.285, allocations: 5.375 kB / 0.7344 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/1.285, allocations: 12.58 kB / 0.7344 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04042/1.326, allocations: 25.14 MB / 0.759 GB, free: 155 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.444e-05/1.326, allocations: 62.72 kB / 0.759 GB, free: 155 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/1.328, allocations: 0.6172 MB / 0.7596 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.83e-05/1.328, allocations: 80.41 kB / 0.7597 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002416/1.328, allocations: 139.2 kB / 0.7598 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.269e-05/1.328, allocations: 125.3 kB / 0.7599 GB, free: 154.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.302e-05/1.328, allocations: 97.19 kB / 0.76 GB, free: 154.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006493/1.335, allocations: 5.884 MB / 0.7658 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.337, allocations: 0.7169 MB / 0.7665 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/1.338, allocations: 150.2 kB / 0.7666 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002998/1.341, allocations: 147.4 kB / 0.7668 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/1.341, allocations: 424.8 kB / 0.7672 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/1.342, allocations: 180.8 kB / 0.7673 GB, free: 150 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007563/1.349, allocations: 4.232 MB / 0.7715 GB, free: 148.7 MB / 0.5138 GB Notification: Performance of sort global known variables: time 6.51e-07/1.349, allocations: 2 kB / 0.7715 GB, free: 148.7 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00985/1.359, allocations: 1.563 MB / 0.773 GB, free: 147.2 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.0009579/1.36, allocations: 324 kB / 0.7733 GB, free: 146.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009719/1.37, allocations: 6.686 MB / 0.7798 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.653e-05/1.37, allocations: 8 kB / 0.7798 GB, free: 141 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002449/1.372, allocations: 1.644 MB / 0.7815 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007287/1.38, allocations: 0.9897 MB / 0.7824 GB, free: 138.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02989/1.41, allocations: 19.04 MB / 0.801 GB, free: 118.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008168/1.418, allocations: 5.775 MB / 0.8067 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/1.419, allocations: 496.3 kB / 0.8071 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.012e-06/1.419, allocations: 0 / 0.8071 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of Templates: time 0.1223/1.542, allocations: 97.85 MB / 0.9027 GB, free: 14.69 MB / 0.5138 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches