Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 168.1 kB / 24.82 MB, free: 9.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.024/1.024, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.535e-05/1.721e-05, allocations: 3.719 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007819/0.007836, allocations: 9.721 MB / 283.1 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005292/0.01313, allocations: 3.777 MB / 286.8 MB, free: 3.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005435/0.01367, allocations: 63.69 kB / 286.9 MB, free: 3.598 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.01579, allocations: 2.188 MB / 289.1 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1227/0.1385, allocations: 1.723 MB / 290.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001964/0.1405, allocations: 0.7392 MB / 291.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005083/0.1456, allocations: 3.765 MB / 295.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003558/0.1491, allocations: 2.535 MB / 297.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003479/0.1526, allocations: 1.988 MB / 299.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002549/0.1551, allocations: 1.851 MB / 301.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006352/0.1558, allocations: 260 kB / 301.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.1575, allocations: 1.049 MB / 303 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009753/0.1584, allocations: 1.665 MB / 304.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.1595, allocations: 1.043 MB / 305.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.1626, allocations: 3.972 MB / 309.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1626, allocations: 0 / 309.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1626, allocations: 0 / 309.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001548/0.1628, allocations: 2.969 kB / 309.7 MB, free: 10.29 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.004243/0.167, allocations: 4.336 MB / 314 MB, free: 6.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1671, allocations: 11.98 kB / 314 MB, free: 6.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002663/0.1697, allocations: 1.371 MB / 315.4 MB, free: 5.344 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.1711, allocations: 1.547 MB / 316.9 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.254e-05/0.1712, allocations: 207.6 kB / 317.1 MB, free: 3.738 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002572/0.1714, allocations: 277.5 kB / 317.4 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005485/0.1769, allocations: 5.276 MB / 322.7 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.1e-05/0.177, allocations: 41.55 kB / 322.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002237/0.1772, allocations: 134.4 kB / 322.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001307/0.1785, allocations: 1.583 MB / 324.4 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004098/0.1826, allocations: 2.435 MB / 326.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02312/0.2057, allocations: 40.36 MB / 367.2 MB, free: 1.262 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/0.2094, allocations: 1.839 MB / 369.1 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000527/0.2099, allocations: 493.5 kB / 369.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004005/0.2139, allocations: 3.626 MB / 373.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.2139, allocations: 57.33 kB / 373.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 2.886e-06/0.2139, allocations: 0 / 373.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01176/0.2257, allocations: 5.458 MB / 378.7 MB, free: 5.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.2257, allocations: 141.5 kB / 378.8 MB, free: 5.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/0.2281, allocations: 3.112 MB / 381.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003076/0.2284, allocations: 49.7 kB / 382 MB, free: 2.848 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.2298, allocations: 3.096 MB / 385.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.2301, allocations: 0.6204 MB / 385.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009289/0.231, allocations: 1.232 MB / 386.9 MB, free: 13.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.2311, allocations: 480.8 kB / 387.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006913/0.2318, allocations: 0.5067 MB / 387.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003242/0.235, allocations: 5.847 MB / 393.8 MB, free: 4.605 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004633/0.2397, allocations: 6.982 MB / 400.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.5e-05/0.2397, allocations: 36 kB / 400.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.00441/0.2441, allocations: 4.537 MB / 405.3 MB, free: 6.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.381e-05/0.2442, allocations: 67.88 kB / 405.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.822e-05/0.2442, allocations: 128.6 kB / 405.5 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004819/0.2447, allocations: 298.6 kB / 405.8 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/0.247, allocations: 1.271 MB / 407.1 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.2486, allocations: 2.469 MB / 409.5 MB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.2503, allocations: 259.7 kB / 409.8 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/0.2506, allocations: 304 kB / 410.1 MB, free: 1.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (706): * Single equations (assignments): 702 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009018/0.2515, allocations: 0.6302 MB / 410.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/0.2518, allocations: 326.1 kB / 411 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.2528, allocations: 0.8522 MB / 411.9 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.2528, allocations: 20 kB / 411.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.2529, allocations: 4 kB / 411.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.2529, allocations: 7.969 kB / 411.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005063/0.2579, allocations: 4.001 MB / 415.9 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.2579, allocations: 11.94 kB / 415.9 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.2584, allocations: 203.7 kB / 416.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003365/0.2587, allocations: 139.7 kB / 416.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.2588, allocations: 39.97 kB / 416.3 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.26, allocations: 2.251 MB / 418.6 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.26, allocations: 11.94 kB / 418.6 MB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.2618, allocations: 2.013 MB / 420.6 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.2621, allocations: 273.9 kB / 420.9 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.2622, allocations: 32 kB / 420.9 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.2627, allocations: 39.92 kB / 420.9 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/0.2628, allocations: 104.3 kB / 421 MB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.176e-05/0.2628, allocations: 43.98 kB / 421.1 MB, free: 6.277 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009232/0.2638, allocations: 1.215 MB / 422.3 MB, free: 5.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2638, allocations: 0 / 422.3 MB, free: 5.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002256/0.266, allocations: 0.8514 MB / 423.1 MB, free: 4.211 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (121): * Single equations (assignments): 117 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000261/0.2663, allocations: 178.9 kB / 423.3 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.2685, allocations: 2.52 MB / 425.8 MB, free: 1.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2685, allocations: 4 kB / 425.8 MB, free: 1.496 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004928/0.269, allocations: 0.5997 MB / 426.4 MB, free: 0.875 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.2701, allocations: 331.3 kB / 426.8 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006459/0.2765, allocations: 6.461 MB / 433.2 MB, free: 9.902 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008003/0.2773, allocations: 1.044 MB / 434.3 MB, free: 8.836 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009091/0.2783, allocations: 444.2 kB / 434.7 MB, free: 8.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008572/0.2791, allocations: 0.5059 MB / 435.2 MB, free: 7.891 MB / 394.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2791, allocations: 4 kB / 435.2 MB, free: 7.887 MB / 394.7 MB Notification: Performance of Templates: time 0.1448/0.4239, allocations: 23.65 MB / 458.9 MB, free: 124.9 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.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.9095095419324934]