Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 165.8 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.095/1.095, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3241/0.3241, allocations: 34.25 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cutTorque.torque.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cutTorque.torque.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 378.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.571e-05, allocations: 2.312 kB / 378.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01208/0.0121, allocations: 8.997 MB / 387.5 MB, free: 9.359 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005992/0.0181, allocations: 2.857 MB / 390.3 MB, free: 6.496 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.01916, allocations: 59.81 kB / 390.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.02161, allocations: 2.107 MB / 392.5 MB, free: 4.324 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002243/0.02386, allocations: 1.178 MB / 393.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006346/0.02449, allocations: 327.2 kB / 394 MB, free: 2.82 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002843/0.02733, allocations: 2.363 MB / 396.4 MB, free: 464 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.0293, allocations: 1.793 MB / 398.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.03091, allocations: 1.294 MB / 399.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.03237, allocations: 1.185 MB / 400.6 MB, free: 12.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000395/0.03277, allocations: 192 kB / 400.8 MB, free: 11.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.03413, allocations: 0.6435 MB / 401.5 MB, free: 11.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009731/0.0351, allocations: 1.188 MB / 402.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007843/0.03589, allocations: 0.7202 MB / 403.4 MB, free: 9.387 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.03873, allocations: 2.724 MB / 406.1 MB, free: 6.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.03873, allocations: 4 kB / 406.1 MB, free: 6.648 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.03873, allocations: 0 / 406.1 MB, free: 6.648 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.539e-05/0.03879, allocations: 0 / 406.1 MB, free: 6.648 MB / 378.7 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.00409/0.04288, allocations: 3.106 MB / 409.2 MB, free: 3.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.04293, allocations: 8.031 kB / 409.2 MB, free: 3.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002728/0.04565, allocations: 0.9901 MB / 410.2 MB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.04716, allocations: 1.134 MB / 411.3 MB, free: 1.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.04727, allocations: 144 kB / 411.5 MB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.04752, allocations: 188.3 kB / 411.7 MB, free: 1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003893/0.05142, allocations: 3.035 MB / 414.7 MB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.05146, allocations: 11.88 kB / 414.7 MB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/0.05165, allocations: 87.91 kB / 414.8 MB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001759/0.05341, allocations: 1.192 MB / 416 MB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.05643, allocations: 1.458 MB / 417.4 MB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01802/0.07445, allocations: 20.44 MB / 437.9 MB, free: 5.699 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/0.07668, allocations: 0.8527 MB / 438.7 MB, free: 4.824 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.07698, allocations: 196.1 kB / 438.9 MB, free: 4.625 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003645/0.08062, allocations: 2.474 MB / 441.4 MB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.08066, allocations: 41.89 kB / 441.5 MB, free: 2.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.755e-06/0.08066, allocations: 0 / 441.5 MB, free: 2.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.003269/0.08393, allocations: 1.233 MB / 442.7 MB, free: 0.832 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.08397, allocations: 55.91 kB / 442.7 MB, free: 0.7617 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.207/0.291, allocations: 1.792 MB / 444.5 MB, free: 95.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001734/0.2911, allocations: 38.77 kB / 444.6 MB, free: 95.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008737/0.292, allocations: 2.025 MB / 446.6 MB, free: 94.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.2923, allocations: 339.6 kB / 446.9 MB, free: 94.15 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005029/0.2928, allocations: 0.6796 MB / 447.6 MB, free: 94.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.2929, allocations: 0.531 MB / 448.1 MB, free: 93.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.2931, allocations: 229 kB / 448.4 MB, free: 93.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.2943, allocations: 3.006 MB / 451.4 MB, free: 90 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002168/0.2964, allocations: 3.619 MB / 455 MB, free: 86.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.9e-05/0.2965, allocations: 16.88 kB / 455 MB, free: 86.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.002418/0.2989, allocations: 2.331 MB / 457.3 MB, free: 85.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.444e-05/0.2989, allocations: 34.56 kB / 457.4 MB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.158e-05/0.299, allocations: 65.28 kB / 457.4 MB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.749e-05/0.2991, allocations: 86.5 kB / 457.5 MB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.3002, allocations: 0.6373 MB / 458.2 MB, free: 85.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.822e-05/0.3003, allocations: 131.8 kB / 458.3 MB, free: 85.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.3014, allocations: 406.4 kB / 458.7 MB, free: 85.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.3016, allocations: 165.9 kB / 458.8 MB, free: 85.55 MB / 410.7 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.0008824/0.3025, allocations: 408.2 kB / 459.2 MB, free: 85.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.3026, allocations: 172.7 kB / 459.4 MB, free: 85.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.3027, allocations: 162.3 kB / 459.6 MB, free: 85.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.3028, allocations: 10.92 kB / 459.6 MB, free: 85.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3028, allocations: 0 / 459.6 MB, free: 85.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3028, allocations: 3.188 kB / 459.6 MB, free: 85.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.3061, allocations: 2.805 MB / 462.4 MB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.3061, allocations: 6.156 kB / 462.4 MB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.3063, allocations: 94.27 kB / 462.5 MB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.284e-05/0.3063, allocations: 9.031 kB / 462.5 MB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.3063, allocations: 20.19 kB / 462.5 MB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.62e-05/0.3063, allocations: 19.2 kB / 462.5 MB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/0.3063, allocations: 6.953 kB / 462.5 MB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008059/0.3071, allocations: 0.8887 MB / 463.4 MB, free: 83.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.3073, allocations: 148.9 kB / 463.6 MB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/0.3074, allocations: 21 kB / 463.6 MB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.3076, allocations: 14.47 kB / 463.6 MB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.3077, allocations: 64.52 kB / 463.7 MB, free: 83.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.3077, allocations: 24.91 kB / 463.7 MB, free: 83.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006199/0.3083, allocations: 0.7315 MB / 464.4 MB, free: 83.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3083, allocations: 3.156 kB / 464.4 MB, free: 83.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001958/0.3103, allocations: 0.707 MB / 465.1 MB, free: 83.28 MB / 410.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 (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.0003048/0.3106, allocations: 145.5 kB / 465.3 MB, free: 83.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.3119, allocations: 1.191 MB / 466.5 MB, free: 82.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3119, allocations: 0 / 466.5 MB, free: 82.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.3121, allocations: 190.9 kB / 466.7 MB, free: 82.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.3128, allocations: 196.8 kB / 466.8 MB, free: 82.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005076/0.3178, allocations: 4.376 MB / 471.2 MB, free: 80.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/0.3185, allocations: 0.7612 MB / 472 MB, free: 80 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005445/0.319, allocations: 242.2 kB / 472.2 MB, free: 79.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.3193, allocations: 299.3 kB / 472.5 MB, free: 79.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.773e-06/0.3193, allocations: 0 / 472.5 MB, free: 79.84 MB / 410.7 MB Notification: Performance of Templates: time 0.02674/0.3461, allocations: 12.45 MB / 485 MB, free: 78.31 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.92937297699973]