Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.0009123/0.0009123, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0009819/0.0009819, allocations: 170.4 kB / 24.91 MB, free: 8.723 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.9624/0.9624, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.458e-05, allocations: 5.125 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.00921/0.009224, allocations: 12.75 MB / 286.2 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1063/0.1156, allocations: 4.926 MB / 291.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001666/0.1172, allocations: 103.8 kB / 291.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00427/0.1215, allocations: 4.402 MB / 295.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003063/0.1246, allocations: 2.247 MB / 297.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.1259, allocations: 1.231 MB / 299.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004317/0.1302, allocations: 6.778 MB / 305.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002678/0.1329, allocations: 4.596 MB / 310.5 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.1357, allocations: 4.182 MB / 314.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002236/0.1379, allocations: 3.055 MB / 317.8 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005487/0.1384, allocations: 0.5 MB / 318.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.1399, allocations: 1.62 MB / 319.9 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001419/0.1414, allocations: 2.779 MB / 322.7 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.143, allocations: 1.765 MB / 324.4 MB, free: 12.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004855/0.1479, allocations: 6.084 MB / 330.5 MB, free: 6.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1479, allocations: 4 kB / 330.5 MB, free: 6.863 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1479, allocations: 0 / 330.5 MB, free: 6.863 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001894/0.1481, allocations: 0 / 330.5 MB, free: 6.863 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.005724/0.1538, allocations: 5.679 MB / 336.2 MB, free: 1.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.1538, allocations: 8.031 kB / 336.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0031/0.1569, allocations: 1.416 MB / 337.6 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.1595, allocations: 2.605 MB / 340.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.1597, allocations: 303.1 kB / 340.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004573/0.1601, allocations: 441.1 kB / 340.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006119/0.1663, allocations: 5.986 MB / 346.9 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.048e-05/0.1663, allocations: 43.59 kB / 347 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002852/0.1666, allocations: 197.1 kB / 347.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001572/0.1682, allocations: 1.822 MB / 349 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00459/0.1728, allocations: 3.062 MB / 352 MB, free: 1.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02179/0.1946, allocations: 34.21 MB / 386.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00412/0.1987, allocations: 2.069 MB / 388.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005043/0.1992, allocations: 427.2 kB / 388.7 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00477/0.204, allocations: 4.015 MB / 392.8 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.204, allocations: 55.5 kB / 392.8 MB, free: 7.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 2.535e-06/0.204, allocations: 0 / 392.8 MB, free: 7.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=207): time 0.01554/0.2195, allocations: 6.922 MB / 399.7 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.2196, allocations: 205.2 kB / 399.9 MB, free: 408 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.2219, allocations: 3.523 MB / 403.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.416e-05/0.222, allocations: 57.7 kB / 403.5 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.2235, allocations: 3.422 MB / 406.9 MB, free: 9.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003808/0.2238, allocations: 0.8139 MB / 407.7 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009405/0.2248, allocations: 1.267 MB / 409 MB, free: 7.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.921e-05/0.2248, allocations: 301.1 kB / 409.3 MB, free: 6.934 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.226, allocations: 0.7837 MB / 410.1 MB, free: 6.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/0.2287, allocations: 4.617 MB / 414.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004662/0.2334, allocations: 5.949 MB / 420.7 MB, free: 7.688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-05/0.2335, allocations: 40 kB / 420.7 MB, free: 7.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.005763/0.2392, allocations: 4.484 MB / 425.2 MB, free: 3.141 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.2393, allocations: 67.94 kB / 425.2 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.112e-05/0.2394, allocations: 136 kB / 425.4 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009108/0.2403, allocations: 443.9 kB / 425.8 MB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/0.2428, allocations: 1.536 MB / 427.3 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.2449, allocations: 2.466 MB / 429.8 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/0.2478, allocations: 283.7 kB / 430.1 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.2481, allocations: 340 kB / 430.4 MB, free: 13.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (823): * Single equations (assignments): 819 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.2492, allocations: 0.6613 MB / 431.1 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/0.2495, allocations: 255.7 kB / 431.3 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.2509, allocations: 1.092 MB / 432.4 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.2509, allocations: 24 kB / 432.4 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2509, allocations: 4 kB / 432.5 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.2509, allocations: 11.97 kB / 432.5 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005733/0.2566, allocations: 5.141 MB / 437.6 MB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.2567, allocations: 12 kB / 437.6 MB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006999/0.2574, allocations: 320.1 kB / 437.9 MB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007704/0.2581, allocations: 440.5 kB / 438.4 MB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.382e-05/0.2582, allocations: 51.92 kB / 438.4 MB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/0.2597, allocations: 1.737 MB / 440.1 MB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.2597, allocations: 19.97 kB / 440.2 MB, free: 3.695 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.2619, allocations: 2.228 MB / 442.4 MB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004687/0.2623, allocations: 369.2 kB / 442.8 MB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002426/0.2626, allocations: 48.03 kB / 442.8 MB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.2632, allocations: 51.92 kB / 442.9 MB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.2634, allocations: 144.5 kB / 443 MB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/0.2635, allocations: 52 kB / 443 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.1385/0.402, allocations: 1.338 MB / 444.4 MB, free: 122.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.402, allocations: 1.219 kB / 444.4 MB, free: 122.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007369/0.4093, allocations: 1.191 MB / 445.6 MB, free: 122.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (j1.phi,j1.w) * 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 (172): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000695/0.41, allocations: 228.6 kB / 445.8 MB, free: 122 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005144/0.4152, allocations: 2.728 MB / 448.5 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003474/0.4155, allocations: 102.1 kB / 448.6 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.4167, allocations: 0.6516 MB / 449.3 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.4204, allocations: 0.7636 MB / 450 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.4358, allocations: 8.963 MB / 459 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002124/0.4379, allocations: 1.514 MB / 460.5 MB, free: 117.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002106/0.44, allocations: 0.5618 MB / 461.1 MB, free: 117.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.4411, allocations: 0.6206 MB / 461.7 MB, free: 117.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4411, allocations: 0 / 461.7 MB, free: 117.5 MB / 394.7 MB Notification: Performance of Templates: time 0.06317/0.5043, allocations: 35.32 MB / 497 MB, free: 91.61 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.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.661976717878133]