Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001155/0.001155, allocations: 80.92 kB / 22.28 MB, free: 2.203 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.001265/0.001265, allocations: 164.5 kB / 25.69 MB, free: 8.797 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.015/1.015, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.554e-05, allocations: 6.25 kB / 251.6 MB, free: 7.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01137/0.0114, allocations: 9.755 MB / 261.3 MB, free: 13.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008912/0.02031, allocations: 3.829 MB / 265.2 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.02234, allocations: 63.69 kB / 265.2 MB, free: 9.496 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.02572, allocations: 2.055 MB / 267.3 MB, free: 7.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003409/0.02913, allocations: 1.746 MB / 269 MB, free: 5.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.03027, allocations: 0.6664 MB / 269.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.03425, allocations: 3.714 MB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002553/0.0368, allocations: 2.423 MB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002683/0.03948, allocations: 1.91 MB / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002233/0.04172, allocations: 1.765 MB / 279.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005449/0.04226, allocations: 256 kB / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.04368, allocations: 0.9984 MB / 280.8 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.0448, allocations: 1.702 MB / 282.5 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.04616, allocations: 1.044 MB / 283.5 MB, free: 7.113 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00479/0.05095, allocations: 3.853 MB / 287.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.05095, allocations: 0 / 287.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.05095, allocations: 4 kB / 287.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001578/0.05111, allocations: 0 / 287.4 MB, free: 3.242 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.004887/0.056, allocations: 3.782 MB / 291.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.05604, allocations: 11.98 kB / 291.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002947/0.05898, allocations: 0.9333 MB / 292.1 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.06106, allocations: 1.492 MB / 293.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.06117, allocations: 189 kB / 293.8 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.06148, allocations: 259.8 kB / 294 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005972/0.06745, allocations: 4.205 MB / 298.2 MB, free: 7.609 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.084e-05/0.06754, allocations: 39.67 kB / 298.3 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.06777, allocations: 123.9 kB / 298.4 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001363/0.06914, allocations: 1.465 MB / 299.8 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004755/0.07389, allocations: 2.096 MB / 301.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02477/0.09866, allocations: 27.44 MB / 329.4 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.1013, allocations: 1.277 MB / 330.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/0.1017, allocations: 276.5 kB / 330.9 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/0.1062, allocations: 2.993 MB / 333.9 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.1063, allocations: 54.98 kB / 334 MB, free: 2.652 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 3.757e-06/0.1063, allocations: 0 / 334 MB, free: 2.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.006803/0.1131, allocations: 2.665 MB / 336.6 MB, free: 15.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.1131, allocations: 137 kB / 336.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002522/0.1157, allocations: 2.919 MB / 339.7 MB, free: 12.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.782e-05/0.1157, allocations: 33.7 kB / 339.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.1172, allocations: 2.766 MB / 342.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003162/0.1175, allocations: 460.7 kB / 342.9 MB, free: 9.555 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007592/0.1183, allocations: 1.017 MB / 344 MB, free: 8.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.992e-05/0.1183, allocations: 301.1 kB / 344.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/0.1192, allocations: 0.6152 MB / 344.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/0.1218, allocations: 4.012 MB / 348.9 MB, free: 1.805 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1248/0.2466, allocations: 5.105 MB / 354 MB, free: 88.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.481e-05/0.2467, allocations: 37.25 kB / 354 MB, free: 88.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004945/0.2516, allocations: 3.589 MB / 357.6 MB, free: 87.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.84e-05/0.2517, allocations: 62.34 kB / 357.7 MB, free: 87.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.2518, allocations: 130 kB / 357.8 MB, free: 87.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001072/0.2519, allocations: 163.8 kB / 358 MB, free: 87.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/0.254, allocations: 1.271 MB / 359.2 MB, free: 87.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001147/0.2541, allocations: 246.3 kB / 359.5 MB, free: 87.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/0.2561, allocations: 246.6 kB / 359.7 MB, free: 87.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.2563, allocations: 293 kB / 360 MB, free: 87.16 MB / 330.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.0009194/0.2573, allocations: 0.563 MB / 360.6 MB, free: 86.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.2575, allocations: 170.5 kB / 360.7 MB, free: 86.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005983/0.2581, allocations: 0.5011 MB / 361.2 MB, free: 86.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.2581, allocations: 15.28 kB / 361.2 MB, free: 86.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2581, allocations: 4 kB / 361.2 MB, free: 86.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.2582, allocations: 7.172 kB / 361.3 MB, free: 86.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.2609, allocations: 2.202 MB / 363.5 MB, free: 86.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.2609, allocations: 0 / 363.5 MB, free: 86.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.2613, allocations: 134.3 kB / 363.6 MB, free: 86.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001597/0.2615, allocations: 48.47 kB / 363.6 MB, free: 86.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.2615, allocations: 21 kB / 363.7 MB, free: 86.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008678/0.2624, allocations: 1.414 MB / 365.1 MB, free: 85.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2624, allocations: 3.188 kB / 365.1 MB, free: 85.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.2634, allocations: 1.227 MB / 366.3 MB, free: 84.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.2638, allocations: 326.4 kB / 366.6 MB, free: 84.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.264, allocations: 15.81 kB / 366.6 MB, free: 84.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004203/0.2644, allocations: 23.05 kB / 366.7 MB, free: 84.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.2645, allocations: 55.75 kB / 366.7 MB, free: 84.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.2646, allocations: 26.75 kB / 366.7 MB, free: 84.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009475/0.2655, allocations: 1.04 MB / 367.8 MB, free: 83.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2655, allocations: 0 / 367.8 MB, free: 83.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002613/0.2681, allocations: 0.8025 MB / 368.6 MB, free: 82.9 MB / 330.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.0002713/0.2684, allocations: 160.3 kB / 368.7 MB, free: 82.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.2703, allocations: 1.936 MB / 370.7 MB, free: 81.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001306/0.2704, allocations: 93.97 kB / 370.8 MB, free: 81.13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.2708, allocations: 348.4 kB / 371.1 MB, free: 80.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.2723, allocations: 0.4912 MB / 371.6 MB, free: 80.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006512/0.2788, allocations: 5.773 MB / 377.4 MB, free: 75.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.2796, allocations: 0.9927 MB / 378.4 MB, free: 74.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001064/0.2807, allocations: 419.3 kB / 378.8 MB, free: 74.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005764/0.2812, allocations: 465.2 kB / 379.2 MB, free: 73.68 MB / 330.7 MB Notification: Performance of SimCode: time 2.615e-06/0.2812, allocations: 0 / 379.2 MB, free: 73.68 MB / 330.7 MB Notification: Performance of Templates: time 0.0333/0.3145, allocations: 22.27 MB / 401.5 MB, free: 51.55 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.608365226071328]