Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 87.89 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9001/0.9001, allocations: 173.4 MB / 201.2 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.448e-05/1.565e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.0101/0.01011, allocations: 13.14 MB / 281.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007642/0.01776, allocations: 4.779 MB / 285.9 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.01896, allocations: 107.4 kB / 286 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1136/0.1326, allocations: 4.514 MB / 290.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004809/0.1374, allocations: 2.286 MB / 292.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001792/0.1392, allocations: 1.227 MB / 294.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006144/0.1453, allocations: 6.646 MB / 300.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004224/0.1495, allocations: 4.728 MB / 305.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003987/0.1535, allocations: 4.274 MB / 309.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002615/0.1561, allocations: 3.176 MB / 312.9 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007311/0.1569, allocations: 0.5075 MB / 313.4 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002004/0.1589, allocations: 1.59 MB / 315 MB, free: 7.836 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001463/0.1603, allocations: 2.797 MB / 317.8 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.1618, allocations: 1.774 MB / 319.5 MB, free: 3.441 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0054/0.1672, allocations: 6.133 MB / 325.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1672, allocations: 4 kB / 325.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1672, allocations: 0 / 325.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.481e-05/0.1673, allocations: 0 / 325.7 MB, free: 13.66 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.008732/0.1761, allocations: 6.603 MB / 332.3 MB, free: 7.094 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1761, allocations: 12.92 kB / 332.3 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008228/0.1843, allocations: 3.129 MB / 335.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004387/0.1887, allocations: 3.19 MB / 338.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/0.1891, allocations: 312.6 kB / 338.9 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006244/0.1897, allocations: 434.1 kB / 339.3 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.2016, allocations: 7.584 MB / 346.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.2017, allocations: 48.11 kB / 347 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004085/0.2022, allocations: 191.4 kB / 347.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0022/0.2044, allocations: 1.982 MB / 349.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.2146, allocations: 4.18 MB / 353.3 MB, free: 1.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03251/0.2471, allocations: 47.41 MB / 400.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005231/0.2524, allocations: 2.622 MB / 403.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007254/0.2531, allocations: 0.5842 MB / 403.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005417/0.2585, allocations: 4.557 MB / 408.5 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.2585, allocations: 56.8 kB / 408.6 MB, free: 9.652 MB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 3.066e-06/0.2586, allocations: 0 / 408.6 MB, free: 9.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=207): time 0.02273/0.2813, allocations: 12.42 MB / 421 MB, free: 13.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.2813, allocations: 197.2 kB / 421.2 MB, free: 13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/0.2851, allocations: 3.954 MB / 425.1 MB, free: 9.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.518e-05/0.2852, allocations: 59.34 kB / 425.2 MB, free: 8.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.2871, allocations: 3.873 MB / 429.1 MB, free: 5.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/0.2876, allocations: 0.8361 MB / 429.9 MB, free: 4.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.2888, allocations: 1.423 MB / 431.3 MB, free: 2.836 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2889, allocations: 484.8 kB / 431.8 MB, free: 2.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.29, allocations: 0.6844 MB / 432.5 MB, free: 1.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1231/0.4132, allocations: 6.502 MB / 439 MB, free: 108.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005574/0.4187, allocations: 7.888 MB / 446.9 MB, free: 101.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.183e-05/0.4188, allocations: 38.88 kB / 446.9 MB, free: 101.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.00812/0.4269, allocations: 5.688 MB / 452.6 MB, free: 100.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/0.427, allocations: 64.62 kB / 452.6 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/0.4271, allocations: 136.8 kB / 452.8 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.4283, allocations: 0.4911 MB / 453.3 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003713/0.432, allocations: 1.511 MB / 454.8 MB, free: 99.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.4356, allocations: 3.198 MB / 458 MB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004711/0.4403, allocations: 405.1 kB / 458.4 MB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005279/0.4408, allocations: 390 kB / 458.8 MB, free: 97.93 MB / 378.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.001791/0.4426, allocations: 0.7035 MB / 459.5 MB, free: 97.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006527/0.4432, allocations: 441.8 kB / 459.9 MB, free: 97.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.4459, allocations: 1.392 MB / 461.3 MB, free: 97.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.4459, allocations: 27.28 kB / 461.3 MB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.4459, allocations: 5.984 kB / 461.3 MB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.446, allocations: 12.55 kB / 461.3 MB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008542/0.4545, allocations: 6.217 MB / 467.5 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4545, allocations: 9 kB / 467.6 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006469/0.4552, allocations: 340.1 kB / 467.9 MB, free: 96.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007131/0.4559, allocations: 308.3 kB / 468.2 MB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.078e-05/0.4559, allocations: 46.55 kB / 468.2 MB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.4575, allocations: 2.42 MB / 470.7 MB, free: 94.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.4575, allocations: 14.69 kB / 470.7 MB, free: 94.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.46, allocations: 2.835 MB / 473.5 MB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003812/0.4603, allocations: 396.3 kB / 473.9 MB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002482/0.4606, allocations: 45.41 kB / 473.9 MB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007506/0.4613, allocations: 139 kB / 474.1 MB, free: 91.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.4615, allocations: 158.4 kB / 474.2 MB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.4616, allocations: 64 kB / 474.3 MB, free: 91.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001515/0.4631, allocations: 1.738 MB / 476 MB, free: 89.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4631, allocations: 0 / 476 MB, free: 89.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003422/0.4665, allocations: 1.228 MB / 477.3 MB, free: 88.78 MB / 378.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.000369/0.4669, allocations: 260.9 kB / 477.5 MB, free: 88.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003437/0.4703, allocations: 3.169 MB / 480.7 MB, free: 85.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4703, allocations: 8 kB / 480.7 MB, free: 85.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.471, allocations: 0.8301 MB / 481.5 MB, free: 84.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4724, allocations: 0.5075 MB / 482 MB, free: 84.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008918/0.4814, allocations: 9.167 MB / 491.2 MB, free: 75.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.4824, allocations: 1.515 MB / 492.7 MB, free: 74.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002079/0.4845, allocations: 1.659 MB / 494.4 MB, free: 73.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.4848, allocations: 260.5 kB / 494.6 MB, free: 72.89 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.4849, allocations: 4 kB / 494.6 MB, free: 72.88 MB / 378.7 MB Notification: Performance of Templates: time 0.04584/0.5307, allocations: 33.63 MB / 0.5159 GB, free: 39.89 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.957213900052011]