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.002469/0.002469, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.003037/0.003037, allocations: 164.8 kB / 24.27 MB, free: 152 kB / 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.54/1.54, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.513e-06/1.513e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.625e-05, allocations: 6.312 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01493/0.01496, allocations: 9.947 MB / 282.2 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008903/0.02386, allocations: 3.8 MB / 286 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.02509, allocations: 63.69 kB / 286 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00474/0.02983, allocations: 2.223 MB / 288.2 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1274/0.1572, allocations: 1.713 MB / 290 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002723/0.16, allocations: 0.7404 MB / 290.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006713/0.1667, allocations: 3.766 MB / 294.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003128/0.1698, allocations: 2.528 MB / 297 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002798/0.1726, allocations: 1.919 MB / 298.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002934/0.1755, allocations: 1.914 MB / 300.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008183/0.1764, allocations: 264.9 kB / 301.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002291/0.1787, allocations: 1.056 MB / 302.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.18, allocations: 1.673 MB / 303.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.1813, allocations: 1.056 MB / 304.9 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005121/0.1864, allocations: 5.961 MB / 310.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1864, allocations: 0 / 310.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1864, allocations: 2.969 kB / 310.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001508/0.1865, allocations: 0 / 310.8 MB, free: 8.531 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.007846/0.1944, allocations: 4.88 MB / 315.7 MB, free: 4.164 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1944, allocations: 12.52 kB / 315.7 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00647/0.2009, allocations: 2.332 MB / 318.1 MB, free: 1.852 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.2046, allocations: 1.719 MB / 319.8 MB, free: 248 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.2047, allocations: 206.7 kB / 320 MB, free: 72 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/0.2052, allocations: 271.8 kB / 320.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.2214, allocations: 6.979 MB / 327.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.185e-05/0.2215, allocations: 39.83 kB / 327.3 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/0.2218, allocations: 130.2 kB / 327.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003412/0.2252, allocations: 1.859 MB / 329.2 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/0.2385, allocations: 4.258 MB / 333.5 MB, free: 2.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05593/0.2944, allocations: 43.74 MB / 377.2 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008861/0.3033, allocations: 2.253 MB / 379.5 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.3046, allocations: 0.6566 MB / 380.1 MB, free: 2.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.3151, allocations: 4.688 MB / 384.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/0.3151, allocations: 54.39 kB / 384.9 MB, free: 13.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=150): time 3.226e-06/0.3151, allocations: 0 / 384.9 MB, free: 13.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=166): time 0.0521/0.3672, allocations: 13.68 MB / 398.6 MB, free: 148 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.3674, allocations: 152.2 kB / 398.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005705/0.3731, allocations: 3.849 MB / 402.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.3732, allocations: 51.89 kB / 402.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003054/0.3763, allocations: 3.156 MB / 405.8 MB, free: 8.883 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008708/0.3772, allocations: 0.7289 MB / 406.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002118/0.3793, allocations: 1.419 MB / 407.9 MB, free: 6.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.3795, allocations: 476.8 kB / 408.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001908/0.3814, allocations: 0.7526 MB / 409.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007189/0.3886, allocations: 5.983 MB / 415.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/0.3993, allocations: 7.422 MB / 422.5 MB, free: 3.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001128/0.3994, allocations: 36 kB / 422.6 MB, free: 3.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01522/0.4147, allocations: 5.789 MB / 428.4 MB, free: 13.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.4148, allocations: 60 kB / 428.4 MB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/0.4149, allocations: 124 kB / 428.6 MB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00421/0.4191, allocations: 0.9514 MB / 429.5 MB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004408/0.4235, allocations: 1.271 MB / 430.8 MB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00748/0.431, allocations: 3.784 MB / 434.6 MB, free: 7.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004732/0.4358, allocations: 339.5 kB / 434.9 MB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/0.437, allocations: 348 kB / 435.2 MB, free: 6.738 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002011/0.4391, allocations: 0.7036 MB / 435.9 MB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006964/0.4398, allocations: 322.1 kB / 436.2 MB, free: 5.711 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006657/0.4464, allocations: 2.049 MB / 438.3 MB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.874e-05/0.4465, allocations: 20 kB / 438.3 MB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.4465, allocations: 4 kB / 438.3 MB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.4465, allocations: 7.969 kB / 438.3 MB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1671/0.6136, allocations: 6.057 MB / 444.4 MB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.6136, allocations: 1.062 kB / 444.4 MB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.6149, allocations: 241.8 kB / 444.6 MB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003871/0.6188, allocations: 0.7741 MB / 445.4 MB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000195/0.619, allocations: 30.33 kB / 445.4 MB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/0.625, allocations: 3.482 MB / 448.9 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.625, allocations: 3.219 kB / 448.9 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007795/0.6328, allocations: 3.221 MB / 452.1 MB, free: 123.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008166/0.6336, allocations: 264.8 kB / 452.4 MB, free: 123.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.6339, allocations: 26.58 kB / 452.4 MB, free: 123.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.6353, allocations: 122.1 kB / 452.5 MB, free: 123.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/0.6356, allocations: 97.17 kB / 452.6 MB, free: 123.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.6357, allocations: 47.58 kB / 452.7 MB, free: 123.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00234/0.638, allocations: 1.509 MB / 454.2 MB, free: 123.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.638, allocations: 3.562 kB / 454.2 MB, free: 123.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004811/0.6428, allocations: 0.9621 MB / 455.2 MB, free: 123.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004741/0.6433, allocations: 180.1 kB / 455.3 MB, free: 123.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006467/0.6498, allocations: 3.34 MB / 458.7 MB, free: 122.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.6498, allocations: 0 / 458.7 MB, free: 122.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.6515, allocations: 0.9566 MB / 459.6 MB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.6535, allocations: 321.3 kB / 459.9 MB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.6636, allocations: 6.66 MB / 466.6 MB, free: 119.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/0.6656, allocations: 2.076 MB / 468.7 MB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002895/0.6685, allocations: 1.439 MB / 470.1 MB, free: 119 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005268/0.6691, allocations: 207.6 kB / 470.3 MB, free: 119 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6691, allocations: 0 / 470.3 MB, free: 119 MB / 394.7 MB Notification: Performance of Templates: time 0.04764/0.7167, allocations: 29.14 MB / 499.5 MB, free: 91.12 MB / 394.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.4404789679683745]