Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.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.0009592/0.0009592, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001425/0.001425, allocations: 169.1 kB / 24.91 MB, free: 9.191 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 0.9469/0.9469, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2523/0.2523, allocations: 32.8 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] 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.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.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 323.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.045e-05/2.192e-05, allocations: 5.297 kB / 323.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.0188/0.01882, allocations: 9.964 MB / 333.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.02995, allocations: 3.293 MB / 336.5 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005659/0.03052, allocations: 63.75 kB / 336.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.03682, allocations: 2.542 MB / 339.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.03896, allocations: 1.309 MB / 340.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008018/0.03977, allocations: 0.5377 MB / 340.9 MB, free: 7.918 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002408/0.04217, allocations: 3 MB / 343.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002238/0.04441, allocations: 2.595 MB / 346.5 MB, free: 2.242 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001657/0.04607, allocations: 1.996 MB / 348.5 MB, free: 248 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.04756, allocations: 1.539 MB / 350.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.04787, allocations: 284 kB / 350.4 MB, free: 14.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.04894, allocations: 0.94 MB / 351.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.05034, allocations: 1.667 MB / 353 MB, free: 11.81 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009246/0.05126, allocations: 1.082 MB / 354 MB, free: 10.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003257/0.05452, allocations: 3.954 MB / 358 MB, free: 6.754 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.05452, allocations: 0 / 358 MB, free: 6.754 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.05452, allocations: 4 kB / 358 MB, free: 6.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.05455, allocations: 3.984 kB / 358 MB, free: 6.746 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.004983/0.05953, allocations: 3.99 MB / 362 MB, free: 2.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.05956, allocations: 11.97 kB / 362 MB, free: 2.695 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002918/0.06248, allocations: 1.007 MB / 363 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.06422, allocations: 1.344 MB / 364.4 MB, free: 320 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.06437, allocations: 226.2 kB / 364.6 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004369/0.06481, allocations: 308.2 kB / 364.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005768/0.07058, allocations: 4.899 MB / 369.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/0.07064, allocations: 43.62 kB / 369.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002237/0.07086, allocations: 143.9 kB / 370 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001612/0.07248, allocations: 1.736 MB / 371.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004098/0.07657, allocations: 2.548 MB / 374.2 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01708/0.09365, allocations: 28.92 MB / 403.2 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/0.09726, allocations: 1.997 MB / 405.2 MB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.09768, allocations: 461.5 kB / 405.6 MB, free: 5.188 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003255/0.1009, allocations: 3.438 MB / 409 MB, free: 1.719 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.101, allocations: 47.56 kB / 409.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 3.327e-06/0.101, allocations: 4 kB / 409.1 MB, free: 1.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.01608/0.117, allocations: 7.653 MB / 416.8 MB, free: 9.965 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.1171, allocations: 149.5 kB / 416.9 MB, free: 9.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.1185, allocations: 2.44 MB / 419.3 MB, free: 7.324 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.1186, allocations: 49.7 kB / 419.4 MB, free: 7.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.1197, allocations: 2.942 MB / 422.3 MB, free: 4.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/0.12, allocations: 0.6705 MB / 423 MB, free: 3.621 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007893/0.1208, allocations: 1.116 MB / 424.1 MB, free: 2.492 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.154e-05/0.1209, allocations: 361.8 kB / 424.5 MB, free: 2.133 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.1215, allocations: 0.6368 MB / 425.1 MB, free: 1.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.1236, allocations: 4.189 MB / 429.3 MB, free: 11.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003483/0.1271, allocations: 5.537 MB / 434.8 MB, free: 4.082 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-05/0.1271, allocations: 36 kB / 434.9 MB, free: 4.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.003798/0.1309, allocations: 4.038 MB / 438.9 MB, free: 15.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.017e-05/0.131, allocations: 60 kB / 439 MB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002319/0.1312, allocations: 132 kB / 439.1 MB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005338/0.1318, allocations: 319.6 kB / 439.4 MB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/0.1338, allocations: 1.337 MB / 440.7 MB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001166/0.1339, allocations: 270.9 kB / 441 MB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/0.1356, allocations: 259.7 kB / 441.3 MB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005199/0.1362, allocations: 316 kB / 441.6 MB, free: 13.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.color_a[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 (745): * Single equations (assignments): 740 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,88.9%), (3,88.9%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001222/0.1374, allocations: 0.6068 MB / 442.2 MB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.1377, allocations: 187.8 kB / 442.4 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.1391, allocations: 0.9431 MB / 443.3 MB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/0.1391, allocations: 20 kB / 443.3 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1391, allocations: 0 / 443.3 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.1391, allocations: 7.969 kB / 443.3 MB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005423/0.1446, allocations: 3.592 MB / 446.9 MB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.1446, allocations: 4 kB / 446.9 MB, free: 7.844 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006621/0.1452, allocations: 247.9 kB / 447.2 MB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/0.1459, allocations: 295.5 kB / 447.5 MB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.146, allocations: 28 kB / 447.5 MB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/0.146, allocations: 7.984 kB / 447.5 MB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.146, allocations: 4 kB / 447.5 MB, free: 7.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.1479, allocations: 1.74 MB / 449.2 MB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.1484, allocations: 241.9 kB / 449.5 MB, free: 5.223 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002095/0.1486, allocations: 31.98 kB / 449.5 MB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.1491, allocations: 28 kB / 449.5 MB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.1492, allocations: 96.75 kB / 449.6 MB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.307e-05/0.1493, allocations: 35.98 kB / 449.7 MB, free: 5.031 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009208/0.1502, allocations: 0.9386 MB / 450.6 MB, free: 4.086 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1502, allocations: 0 / 450.6 MB, free: 4.086 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002748/0.1529, allocations: 0.8359 MB / 451.4 MB, free: 3.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,prismatic1.s,prismatic1.v) * 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 (143): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,88.9%), (3,88.9%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003251/0.1533, allocations: 148 kB / 451.6 MB, free: 3.098 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003229/0.1565, allocations: 2.448 MB / 454 MB, free: 0.6602 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002297/0.1567, allocations: 96.16 kB / 454.1 MB, free: 0.5547 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008643/0.1576, allocations: 0.547 MB / 454.7 MB, free: 0 / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1176/0.2752, allocations: 287.5 kB / 454.9 MB, free: 129.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009065/0.2843, allocations: 6.971 MB / 461.9 MB, free: 126.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.2854, allocations: 1.08 MB / 463 MB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001336/0.2867, allocations: 454.3 kB / 463.4 MB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006204/0.2873, allocations: 480.8 kB / 463.9 MB, free: 126.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.705e-06/0.2873, allocations: 0 / 463.9 MB, free: 126.2 MB / 426.7 MB Notification: Performance of Templates: time 0.0347/0.322, allocations: 23.38 MB / 487.3 MB, free: 107.6 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.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.8092911378480494]