Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001455/0.001455, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001519/0.001519, allocations: 166.2 kB / 25 MB, free: 8.355 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.9319/0.9319, allocations: 177.1 MB / 205.3 MB, free: 5.602 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.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 273.1 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.737e-05, allocations: 2.312 kB / 273.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009095/0.009123, allocations: 9.978 MB / 283 MB, free: 7.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005433/0.01456, allocations: 3.8 MB / 286.8 MB, free: 3.957 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008341/0.01539, allocations: 63.69 kB / 286.9 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.0179, allocations: 2.223 MB / 289.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1053/0.1232, allocations: 1.711 MB / 290.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.1248, allocations: 0.7421 MB / 291.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004204/0.129, allocations: 3.76 MB / 295.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003025/0.132, allocations: 2.538 MB / 297.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002572/0.1346, allocations: 1.918 MB / 299.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002092/0.1367, allocations: 1.914 MB / 301.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005564/0.1373, allocations: 265.3 kB / 302 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.1386, allocations: 1.061 MB / 303 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009278/0.1395, allocations: 1.669 MB / 304.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009727/0.1405, allocations: 1.059 MB / 305.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002933/0.1434, allocations: 4.009 MB / 309.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1435, allocations: 0 / 309.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1435, allocations: 0 / 309.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001114/0.1436, allocations: 0 / 309.8 MB, free: 10.16 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.004265/0.1478, allocations: 4.484 MB / 314.3 MB, free: 6.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1479, allocations: 8.031 kB / 314.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003717/0.1516, allocations: 2.333 MB / 316.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.1531, allocations: 1.716 MB / 318.3 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.1532, allocations: 204.2 kB / 318.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002653/0.1535, allocations: 273.9 kB / 318.8 MB, free: 2.238 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007516/0.161, allocations: 6.594 MB / 325.4 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.478e-05/0.161, allocations: 43.25 kB / 325.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.1613, allocations: 130.6 kB / 325.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/0.1631, allocations: 1.857 MB / 327.4 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007449/0.1705, allocations: 3.925 MB / 331.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02484/0.1953, allocations: 40.8 MB / 372.1 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004995/0.2003, allocations: 2.189 MB / 374.3 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008123/0.2012, allocations: 0.6443 MB / 375 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005248/0.2064, allocations: 4.585 MB / 379.5 MB, free: 4.133 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.2064, allocations: 53.11 kB / 379.6 MB, free: 4.074 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 3.236e-06/0.2064, allocations: 0 / 379.6 MB, free: 4.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02647/0.2329, allocations: 13.41 MB / 393 MB, free: 6.664 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.233, allocations: 141.5 kB / 393.1 MB, free: 6.492 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/0.2356, allocations: 3.009 MB / 396.2 MB, free: 3.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.58e-05/0.2357, allocations: 49.7 kB / 396.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.2373, allocations: 3 MB / 399.2 MB, free: 416 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004328/0.2377, allocations: 0.6875 MB / 399.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009982/0.2387, allocations: 1.197 MB / 401.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.291e-05/0.2388, allocations: 476.8 kB / 401.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.2399, allocations: 0.6628 MB / 402.2 MB, free: 13.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00337/0.2433, allocations: 5.736 MB / 408 MB, free: 5.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005369/0.2486, allocations: 7.074 MB / 415 MB, free: 12.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-05/0.2487, allocations: 40 kB / 415.1 MB, free: 11.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.007492/0.2562, allocations: 5.604 MB / 420.7 MB, free: 6.363 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.2562, allocations: 59.94 kB / 420.7 MB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.835e-05/0.2563, allocations: 124 kB / 420.9 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002104/0.2584, allocations: 0.9281 MB / 421.8 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002348/0.2608, allocations: 1.263 MB / 423 MB, free: 3.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003856/0.2646, allocations: 3.58 MB / 426.6 MB, free: 300 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002087/0.2667, allocations: 347.6 kB / 427 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.267, allocations: 339.9 kB / 427.3 MB, free: 15.62 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.0009203/0.2679, allocations: 0.6108 MB / 427.9 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003472/0.2683, allocations: 326.1 kB / 428.2 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003423/0.2717, allocations: 1.963 MB / 430.2 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.2717, allocations: 23.36 kB / 430.2 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2717, allocations: 4 kB / 430.2 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.2717, allocations: 15.84 kB / 430.2 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007061/0.2788, allocations: 5.162 MB / 435.4 MB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.2788, allocations: 0 / 435.4 MB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006059/0.2794, allocations: 243.7 kB / 435.6 MB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001887/0.2813, allocations: 0.7588 MB / 436.4 MB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.279e-05/0.2814, allocations: 27.98 kB / 436.4 MB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003676/0.2851, allocations: 3.304 MB / 439.7 MB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2851, allocations: 0 / 439.7 MB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1113/0.3964, allocations: 3.021 MB / 442.7 MB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005823/0.3969, allocations: 260 kB / 443 MB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/0.3974, allocations: 27.36 kB / 443 MB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008341/0.3982, allocations: 119.6 kB / 443.1 MB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.3985, allocations: 96.56 kB / 443.2 MB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.359e-05/0.3985, allocations: 45.17 kB / 443.3 MB, free: 130.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001692/0.4002, allocations: 1.262 MB / 444.5 MB, free: 130 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4002, allocations: 1.094 kB / 444.5 MB, free: 130 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002876/0.4031, allocations: 0.9653 MB / 445.5 MB, free: 130 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.0003566/0.4035, allocations: 177.3 kB / 445.7 MB, free: 130 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004005/0.4075, allocations: 3.002 MB / 448.7 MB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4075, allocations: 1.438 kB / 448.7 MB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.4085, allocations: 0.8788 MB / 449.6 MB, free: 129.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.4097, allocations: 318.7 kB / 449.9 MB, free: 129.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007846/0.4175, allocations: 6.555 MB / 456.4 MB, free: 126.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007964/0.4183, allocations: 1.051 MB / 457.5 MB, free: 126.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001897/0.4202, allocations: 1.436 MB / 458.9 MB, free: 126.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4205, allocations: 204 kB / 459.1 MB, free: 126.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4205, allocations: 3.875 kB / 459.1 MB, free: 126.4 MB / 394.7 MB Notification: Performance of Templates: time 0.03387/0.4544, allocations: 29.17 MB / 488.3 MB, free: 104.6 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7702856990508735]