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.001471/0.001471, allocations: 79.59 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.001584/0.001584, allocations: 161 kB / 24.56 MB, free: 16 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.9971/0.9971, allocations: 177.1 MB / 205 MB, free: 5.637 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.493e-06/1.493e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.73e-05, allocations: 2.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.009086/0.009113, allocations: 9.963 MB / 282.9 MB, free: 7.543 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006449/0.01556, allocations: 3.723 MB / 286.7 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.01671, allocations: 67.62 kB / 286.7 MB, free: 3.746 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.01942, allocations: 2.091 MB / 288.8 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1337/0.1531, allocations: 1.73 MB / 290.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.1548, allocations: 0.6678 MB / 291.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005232/0.16, allocations: 3.746 MB / 295 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003928/0.164, allocations: 2.454 MB / 297.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003663/0.1676, allocations: 1.902 MB / 299.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002819/0.1704, allocations: 1.865 MB / 301.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008483/0.1713, allocations: 259.4 kB / 301.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.1729, allocations: 0.971 MB / 302.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00106/0.174, allocations: 1.678 MB / 304.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.1752, allocations: 1.034 MB / 305.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00387/0.1791, allocations: 3.811 MB / 308.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1791, allocations: 0 / 308.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1791, allocations: 3.844 kB / 308.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001504/0.1793, allocations: 0 / 308.9 MB, free: 10.33 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.005056/0.1843, allocations: 4.367 MB / 313.3 MB, free: 7.105 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1844, allocations: 12.02 kB / 313.3 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003517/0.1879, allocations: 2.186 MB / 315.5 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.1899, allocations: 1.736 MB / 317.2 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.965e-05/0.1899, allocations: 189 kB / 317.4 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.1902, allocations: 255.8 kB / 317.7 MB, free: 2.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006001/0.1962, allocations: 5.271 MB / 322.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.878e-05/0.1963, allocations: 37.11 kB / 323 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/0.1965, allocations: 129.4 kB / 323.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001762/0.1983, allocations: 1.697 MB / 324.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005576/0.2039, allocations: 2.769 MB / 327.6 MB, free: 8.578 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02598/0.2298, allocations: 38.6 MB / 366.2 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003578/0.2334, allocations: 1.613 MB / 367.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/0.2341, allocations: 0.4955 MB / 368.3 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003848/0.2379, allocations: 3.161 MB / 371.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.238, allocations: 49.23 kB / 371.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 4.789e-06/0.238, allocations: 0 / 371.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=129): time 0.0157/0.2537, allocations: 8.488 MB / 380 MB, free: 3.242 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.2538, allocations: 145.2 kB / 380.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003538/0.2573, allocations: 3.18 MB / 383.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.437e-05/0.2574, allocations: 44.2 kB / 383.3 MB, free: 15.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.2589, allocations: 3.007 MB / 386.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/0.2594, allocations: 0.5577 MB / 386.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.2604, allocations: 1.168 MB / 388.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.2605, allocations: 476.8 kB / 388.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009523/0.2614, allocations: 0.5491 MB / 389.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003281/0.2647, allocations: 5.625 MB / 394.7 MB, free: 2.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00518/0.2699, allocations: 6.832 MB / 401.6 MB, free: 9.039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-05/0.27, allocations: 38.94 kB / 401.6 MB, free: 9.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.006031/0.276, allocations: 4.657 MB / 406.2 MB, free: 4.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.893e-05/0.2761, allocations: 66.41 kB / 406.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.2762, allocations: 120.9 kB / 406.4 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005235/0.2767, allocations: 335.5 kB / 406.8 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002194/0.2789, allocations: 1.248 MB / 408 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.2805, allocations: 2.434 MB / 410.4 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/0.2827, allocations: 318.7 kB / 410.8 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003037/0.283, allocations: 339.8 kB / 411.1 MB, free: 15.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * 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 (668): * 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: 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001032/0.2841, allocations: 0.603 MB / 411.7 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003482/0.2844, allocations: 318.1 kB / 412 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.2864, allocations: 1.311 MB / 413.3 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/0.2864, allocations: 16 kB / 413.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.2864, allocations: 7.938 kB / 413.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2865, allocations: 4.031 kB / 413.3 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006233/0.2927, allocations: 4.218 MB / 417.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.2927, allocations: 0 / 417.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000456/0.2931, allocations: 171.8 kB / 417.7 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.2942, allocations: 447.8 kB / 418.2 MB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.11e-05/0.2943, allocations: 20 kB / 418.2 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002661/0.297, allocations: 2.927 MB / 421.1 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.297, allocations: 0 / 421.1 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/0.3, allocations: 2.286 MB / 423.4 MB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004934/0.3005, allocations: 270 kB / 423.7 MB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.3007, allocations: 20 kB / 423.7 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.3013, allocations: 99.84 kB / 423.8 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.3014, allocations: 67.11 kB / 423.8 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.175e-05/0.3015, allocations: 39.98 kB / 423.9 MB, free: 2.363 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00191/0.3034, allocations: 1.346 MB / 425.2 MB, free: 1.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3034, allocations: 4.031 kB / 425.2 MB, free: 1.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003136/0.3065, allocations: 0.871 MB / 426.1 MB, free: 148 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000376/0.3069, allocations: 169.4 kB / 426.3 MB, free: 15.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003759/0.3107, allocations: 2.552 MB / 428.8 MB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3107, allocations: 0 / 428.8 MB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007526/0.3114, allocations: 0.6271 MB / 429.4 MB, free: 12.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.3129, allocations: 346.7 kB / 429.8 MB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008252/0.3211, allocations: 5.944 MB / 435.7 MB, free: 6.426 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000962/0.3221, allocations: 1.01 MB / 436.7 MB, free: 5.398 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002104/0.3242, allocations: 1.4 MB / 438.1 MB, free: 3.992 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/0.3246, allocations: 196.5 kB / 438.3 MB, free: 3.801 MB / 394.7 MB Notification: Performance of SimCode: time 2.725e-06/0.3246, allocations: 0 / 438.3 MB, free: 3.801 MB / 394.7 MB Notification: Performance of Templates: time 0.1609/0.4855, allocations: 25.75 MB / 464.1 MB, free: 124.4 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: 4.098413073923439]