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.001447/0.001447, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.00176/0.00176, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.9868/0.9868, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.653e-06/1.653e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.36e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01102/0.01105, allocations: 9.782 MB / 283.3 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009223/0.02027, allocations: 3.92 MB / 287.2 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/0.02216, allocations: 63.69 kB / 287.3 MB, free: 3.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003949/0.02611, allocations: 2.184 MB / 289.4 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1084/0.1345, allocations: 1.685 MB / 291.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.1362, allocations: 0.744 MB / 291.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0044/0.1406, allocations: 3.762 MB / 295.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002433/0.143, allocations: 2.498 MB / 298.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.1451, allocations: 1.947 MB / 300.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.1469, allocations: 1.768 MB / 301.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003409/0.1472, allocations: 260.1 kB / 302.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1486, allocations: 1.072 MB / 303.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008814/0.1495, allocations: 1.669 MB / 304.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007879/0.1503, allocations: 1.043 MB / 305.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002756/0.1531, allocations: 3.973 MB / 309.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1531, allocations: 3.531 kB / 309.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1531, allocations: 0 / 309.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.002e-05/0.1531, allocations: 0 / 309.9 MB, free: 10.28 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.003987/0.1571, allocations: 3.836 MB / 313.7 MB, free: 7.172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1571, allocations: 12.03 kB / 313.7 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002512/0.1596, allocations: 1.015 MB / 314.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.1612, allocations: 1.435 MB / 316.2 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.314e-05/0.1613, allocations: 200.8 kB / 316.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002889/0.1616, allocations: 275.4 kB / 316.6 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005516/0.1671, allocations: 4.687 MB / 321.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.767e-05/0.1672, allocations: 44.28 kB / 321.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002179/0.1674, allocations: 131.2 kB / 321.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001338/0.1687, allocations: 1.58 MB / 323.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004789/0.1735, allocations: 2.417 MB / 325.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02203/0.1956, allocations: 28.88 MB / 354.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003756/0.1993, allocations: 1.782 MB / 356.1 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.1999, allocations: 413.6 kB / 356.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004628/0.2045, allocations: 3.407 MB / 360 MB, free: 9.148 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.2045, allocations: 43.22 kB / 360 MB, free: 9.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 3.757e-06/0.2045, allocations: 3.562 kB / 360 MB, free: 9.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=145): time 0.01129/0.2158, allocations: 4.848 MB / 364.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.2159, allocations: 144.8 kB / 365 MB, free: 4.105 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/0.218, allocations: 2.779 MB / 367.8 MB, free: 1.766 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.517e-05/0.218, allocations: 49.69 kB / 367.8 MB, free: 1.711 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.2192, allocations: 2.798 MB / 370.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003588/0.2196, allocations: 0.5931 MB / 371.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007995/0.2204, allocations: 1.061 MB / 372.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.2204, allocations: 305.1 kB / 372.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009645/0.2214, allocations: 0.671 MB / 373.2 MB, free: 12.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/0.2238, allocations: 4.131 MB / 377.4 MB, free: 6.352 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00422/0.228, allocations: 5.328 MB / 382.7 MB, free: 15.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-05/0.2281, allocations: 36 kB / 382.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004765/0.2329, allocations: 3.843 MB / 386.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.697e-05/0.2329, allocations: 60 kB / 386.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.2331, allocations: 131.9 kB / 386.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005172/0.2336, allocations: 300.1 kB / 387.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/0.2357, allocations: 1.322 MB / 388.4 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.2372, allocations: 1.928 MB / 390.3 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/0.2394, allocations: 263.7 kB / 390.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003062/0.2397, allocations: 300 kB / 390.9 MB, free: 7 MB / 346.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.001081/0.2408, allocations: 0.5912 MB / 391.4 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.2411, allocations: 183.8 kB / 391.6 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009559/0.242, allocations: 0.7409 MB / 392.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/0.2421, allocations: 16 kB / 392.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2421, allocations: 4 kB / 392.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2421, allocations: 3.984 kB / 392.4 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004296/0.2464, allocations: 3.36 MB / 395.8 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.2464, allocations: 8 kB / 395.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005028/0.2469, allocations: 223.3 kB / 396 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004935/0.2474, allocations: 292.2 kB / 396.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.535e-05/0.2474, allocations: 32 kB / 396.3 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.2489, allocations: 1.704 MB / 398 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.2489, allocations: 19.91 kB / 398 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.2505, allocations: 1.666 MB / 399.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.2509, allocations: 258 kB / 399.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.2511, allocations: 35.98 kB / 400 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004886/0.2516, allocations: 32 kB / 400 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.2517, allocations: 108.2 kB / 400.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.2517, allocations: 40.11 kB / 400.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008781/0.2526, allocations: 0.9769 MB / 401.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2526, allocations: 0 / 401.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002605/0.2552, allocations: 0.8514 MB / 402 MB, free: 11.49 MB / 362.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.0003039/0.2555, allocations: 168.1 kB / 402.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002741/0.2583, allocations: 2.299 MB / 404.4 MB, free: 9.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001459/0.2584, allocations: 96.16 kB / 404.5 MB, free: 8.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.2589, allocations: 0.4911 MB / 405 MB, free: 8.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.2605, allocations: 0.4953 MB / 405.5 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00827/0.2688, allocations: 6.325 MB / 411.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009121/0.2697, allocations: 1.016 MB / 412.9 MB, free: 404 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001426/0.2711, allocations: 448.2 kB / 413.3 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008106/0.2719, allocations: 481.2 kB / 413.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.2719, allocations: 0 / 413.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of Templates: time 0.1464/0.4184, allocations: 23.58 MB / 437.3 MB, free: 114.7 MB / 378.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 -s gbode -gbm=radauIIA3 -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.5709232492372394]