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.001341/0.001341, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.00148/0.00148, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9436/0.9436, allocations: 177 MB / 204.8 MB, free: 5.578 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.573e-06/1.573e-06, allocations: 3.938 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.865e-05, allocations: 9.266 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008652/0.008671, allocations: 10.02 MB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005345/0.01402, allocations: 3.808 MB / 286.7 MB, free: 3.547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005713/0.01459, allocations: 71.69 kB / 286.8 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.01671, allocations: 2.223 MB / 289 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1046/0.1213, allocations: 1.719 MB / 290.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1227, allocations: 0.744 MB / 291.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003639/0.1263, allocations: 3.769 MB / 295.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.1289, allocations: 2.536 MB / 297.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.1313, allocations: 1.985 MB / 299.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001958/0.1333, allocations: 1.853 MB / 301.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005184/0.1338, allocations: 259.7 kB / 301.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.1352, allocations: 1.051 MB / 303 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007745/0.136, allocations: 1.658 MB / 304.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007822/0.1368, allocations: 1.048 MB / 305.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002642/0.1394, allocations: 3.972 MB / 309.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1395, allocations: 7 kB / 309.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1395, allocations: 0 / 309.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.077e-05/0.1395, allocations: 0 / 309.6 MB, free: 10.04 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.003656/0.1431, allocations: 4.466 MB / 314.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1432, allocations: 11.98 kB / 314.1 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003489/0.1467, allocations: 2.331 MB / 316.4 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.1482, allocations: 1.694 MB / 318.1 MB, free: 2.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.549e-05/0.1482, allocations: 207.7 kB / 318.3 MB, free: 2.312 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002564/0.1485, allocations: 273.8 kB / 318.6 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007156/0.1557, allocations: 6.583 MB / 325.2 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.624e-05/0.1557, allocations: 39.92 kB / 325.2 MB, free: 10.74 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.156, allocations: 130.9 kB / 325.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001522/0.1575, allocations: 1.798 MB / 327.2 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006999/0.1645, allocations: 3.83 MB / 331 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02388/0.1884, allocations: 40.86 MB / 371.8 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004347/0.1927, allocations: 1.991 MB / 373.8 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007148/0.1934, allocations: 0.5605 MB / 374.4 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004269/0.1977, allocations: 3.795 MB / 378.2 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1977, allocations: 46.05 kB / 378.2 MB, free: 5.055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 2.865e-06/0.1977, allocations: 0 / 378.2 MB, free: 5.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.0139/0.2116, allocations: 8.195 MB / 386.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005071/0.2121, allocations: 141.5 kB / 386.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.2156, allocations: 3.128 MB / 389.7 MB, free: 9.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.006078/0.2217, allocations: 49.22 kB / 389.7 MB, free: 9.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/0.2234, allocations: 3.066 MB / 392.8 MB, free: 6.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004589/0.2239, allocations: 0.617 MB / 393.4 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00449/0.2284, allocations: 1.212 MB / 394.6 MB, free: 4.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2285, allocations: 479 kB / 395.1 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.2296, allocations: 0.5653 MB / 395.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006873/0.2364, allocations: 5.873 MB / 401.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/0.2483, allocations: 7.129 MB / 408.7 MB, free: 1.656 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.118e-05/0.2484, allocations: 36 kB / 408.7 MB, free: 1.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01049/0.2589, allocations: 4.876 MB / 413.6 MB, free: 12.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.2589, allocations: 56 kB / 413.6 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.246e-05/0.259, allocations: 131.9 kB / 413.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000537/0.2595, allocations: 303.8 kB / 414.1 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/0.2616, allocations: 1.317 MB / 415.4 MB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.2633, allocations: 2.531 MB / 417.9 MB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/0.2654, allocations: 339.5 kB / 418.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002619/0.2657, allocations: 348 kB / 418.6 MB, free: 7.629 MB / 378.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.0008571/0.2665, allocations: 0.6342 MB / 419.2 MB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002905/0.2668, allocations: 325 kB / 419.5 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.268, allocations: 0.9381 MB / 420.5 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.268, allocations: 16 kB / 420.5 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.268, allocations: 4 kB / 420.5 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.268, allocations: 7.922 kB / 420.5 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.2729, allocations: 4.122 MB / 424.6 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.2729, allocations: 8 kB / 424.6 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004798/0.2734, allocations: 227.7 kB / 424.9 MB, free: 1.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003879/0.2738, allocations: 154.9 kB / 425 MB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.826e-05/0.2739, allocations: 32 kB / 425 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.2755, allocations: 2.306 MB / 427.3 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.2755, allocations: 11.94 kB / 427.4 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.2775, allocations: 2.16 MB / 429.5 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.2777, allocations: 266 kB / 429.8 MB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.2779, allocations: 35.94 kB / 429.8 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.2784, allocations: 99.91 kB / 429.9 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.2786, allocations: 108.3 kB / 430 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.578e-05/0.2786, allocations: 44 kB / 430.1 MB, free: 11.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001244/0.2799, allocations: 1.306 MB / 431.4 MB, free: 10.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2799, allocations: 0 / 431.4 MB, free: 10.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002376/0.2822, allocations: 0.8536 MB / 432.2 MB, free: 9.562 MB / 394.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.0005492/0.2828, allocations: 193.2 kB / 432.4 MB, free: 9.367 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.2857, allocations: 2.677 MB / 435.1 MB, free: 6.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2857, allocations: 4 kB / 435.1 MB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.2863, allocations: 0.6459 MB / 435.7 MB, free: 6.016 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.2873, allocations: 328.7 kB / 436.1 MB, free: 5.703 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09944/0.3868, allocations: 6.479 MB / 442.5 MB, free: 129.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008506/0.3876, allocations: 1.034 MB / 443.6 MB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002272/0.3899, allocations: 1.457 MB / 445 MB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.3902, allocations: 203.6 kB / 445.2 MB, free: 129.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.764e-06/0.3902, allocations: 1.062 kB / 445.2 MB, free: 129.5 MB / 394.7 MB Notification: Performance of Templates: time 0.02863/0.4188, allocations: 22.03 MB / 467.3 MB, free: 120.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.6738589499145746]