Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.0009742/0.0009742, allocations: 83.58 kB / 21.18 MB, free: 3.387 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.0009603/0.0009603, allocations: 161 kB / 24.56 MB, free: 20 kB / 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.9649/0.9649, allocations: 177.1 MB / 205 MB, free: 5.633 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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.586e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01178/0.0118, allocations: 9.963 MB / 282.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007068/0.01887, allocations: 3.716 MB / 286.7 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.02012, allocations: 71.62 kB / 286.7 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002282/0.0224, allocations: 2.094 MB / 288.8 MB, free: 1.629 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1166/0.139, allocations: 1.733 MB / 290.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.1407, allocations: 0.6639 MB / 291.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004305/0.145, allocations: 3.749 MB / 295 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.1476, allocations: 2.457 MB / 297.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002381/0.15, allocations: 1.937 MB / 299.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.1517, allocations: 1.833 MB / 301.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003853/0.1521, allocations: 257.4 kB / 301.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.1533, allocations: 0.9711 MB / 302.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008632/0.1541, allocations: 1.673 MB / 304.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009147/0.1551, allocations: 1.031 MB / 305.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002542/0.1576, allocations: 3.807 MB / 308.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1576, allocations: 0 / 308.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1576, allocations: 0 / 308.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.961e-05/0.1576, allocations: 0 / 308.9 MB, free: 10.54 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.003678/0.1613, allocations: 4.371 MB / 313.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1614, allocations: 16.02 kB / 313.3 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003324/0.1647, allocations: 2.185 MB / 315.5 MB, free: 5.105 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.1662, allocations: 1.751 MB / 317.3 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.037e-05/0.1663, allocations: 192.7 kB / 317.4 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002553/0.1665, allocations: 256.1 kB / 317.7 MB, free: 3.094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005076/0.1716, allocations: 5.259 MB / 323 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-05/0.1717, allocations: 40.86 kB / 323 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/0.1719, allocations: 126.8 kB / 323.1 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001415/0.1733, allocations: 1.638 MB / 324.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005389/0.1787, allocations: 2.666 MB / 327.4 MB, free: 8.902 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02298/0.2017, allocations: 38.77 MB / 366.2 MB, free: 1.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.2047, allocations: 1.471 MB / 367.7 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.2052, allocations: 403.2 kB / 368.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003632/0.2088, allocations: 3.388 MB / 371.4 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.2089, allocations: 48.42 kB / 371.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of pre-optimization done (n=103): time 3.576e-06/0.2089, allocations: 0 / 371.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.01081/0.2197, allocations: 5.622 MB / 377.1 MB, free: 6.227 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.2197, allocations: 137 kB / 377.3 MB, free: 6.062 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004054/0.2238, allocations: 3.261 MB / 380.5 MB, free: 2.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.2238, allocations: 41.7 kB / 380.6 MB, free: 2.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.2256, allocations: 3.075 MB / 383.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003651/0.226, allocations: 482.1 kB / 384.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.2272, allocations: 1.163 MB / 385.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2273, allocations: 480.8 kB / 385.7 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009586/0.2282, allocations: 498.2 kB / 386.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004068/0.2323, allocations: 5.729 MB / 391.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005781/0.2381, allocations: 6.882 MB / 398.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.19e-05/0.2381, allocations: 36 kB / 398.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.006624/0.2448, allocations: 4.508 MB / 403.4 MB, free: 7.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.2451, allocations: 60 kB / 403.4 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.2452, allocations: 125.9 kB / 403.6 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/0.2454, allocations: 168 kB / 403.7 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002788/0.2482, allocations: 1.248 MB / 405 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001569/0.2483, allocations: 243 kB / 405.2 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/0.2509, allocations: 319.5 kB / 405.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003479/0.2513, allocations: 335 kB / 405.8 MB, free: 4.703 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (667): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.2523, allocations: 0.6069 MB / 406.4 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.2527, allocations: 314 kB / 406.8 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009797/0.2537, allocations: 0.5977 MB / 407.4 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/0.2537, allocations: 12 kB / 407.4 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.2537, allocations: 4 kB / 407.4 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.2537, allocations: 3.984 kB / 407.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005101/0.2588, allocations: 3.236 MB / 410.6 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.2588, allocations: 4 kB / 410.6 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007792/0.2596, allocations: 151.9 kB / 410.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002219/0.2598, allocations: 51.66 kB / 410.8 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/0.2599, allocations: 20 kB / 410.8 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.2609, allocations: 1.825 MB / 412.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2609, allocations: 0 / 412.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.2622, allocations: 1.546 MB / 414.2 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.2625, allocations: 270 kB / 414.5 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.2627, allocations: 16 kB / 414.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.2631, allocations: 67.27 kB / 414.5 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.2632, allocations: 55.84 kB / 414.6 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.2633, allocations: 31.98 kB / 414.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001386/0.2647, allocations: 1.375 MB / 416 MB, free: 10.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2647, allocations: 4 kB / 416 MB, free: 10.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002383/0.267, allocations: 0.7811 MB / 416.8 MB, free: 9.484 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002869/0.2673, allocations: 169.7 kB / 417 MB, free: 9.312 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00277/0.2701, allocations: 2.209 MB / 419.2 MB, free: 7.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2701, allocations: 4.188 kB / 419.2 MB, free: 7.113 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.2706, allocations: 479.2 kB / 419.6 MB, free: 6.629 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.2716, allocations: 346.2 kB / 420 MB, free: 6.305 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006752/0.2784, allocations: 5.777 MB / 425.8 MB, free: 444 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007947/0.2792, allocations: 0.9969 MB / 426.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002137/0.2813, allocations: 1.415 MB / 428.2 MB, free: 14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003836/0.2817, allocations: 188.5 kB / 428.3 MB, free: 13.81 MB / 394.7 MB Notification: Performance of SimCode: time 2.144e-06/0.2817, allocations: 4 kB / 428.4 MB, free: 13.81 MB / 394.7 MB Notification: Performance of Templates: time 0.1361/0.4178, allocations: 20.33 MB / 448.7 MB, free: 130.8 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.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.687441013287753]