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.0009541/0.0009541, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009323/0.0009323, allocations: 170.6 kB / 24.91 MB, free: 8.723 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.9667/0.9667, allocations: 177.1 MB / 205.3 MB, free: 5.098 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.282e-06/1.282e-06, allocations: 0 / 273.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.747e-05, allocations: 2.312 kB / 273.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.008271/0.008298, allocations: 9.728 MB / 283.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008175/0.01647, allocations: 3.82 MB / 287 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.01785, allocations: 71.62 kB / 287.1 MB, free: 3.449 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002406/0.02026, allocations: 2.044 MB / 289.2 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1139/0.1342, allocations: 1.712 MB / 290.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1356, allocations: 0.6679 MB / 291.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004599/0.1402, allocations: 3.743 MB / 295.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0031/0.1433, allocations: 2.413 MB / 297.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00303/0.1464, allocations: 1.904 MB / 299.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.1487, allocations: 1.753 MB / 301.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006507/0.1493, allocations: 256.3 kB / 301.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.1508, allocations: 0.991 MB / 302.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.1519, allocations: 1.669 MB / 304.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.153, allocations: 1.035 MB / 305.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003316/0.1564, allocations: 3.8 MB / 309.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1564, allocations: 7.125 kB / 309.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1564, allocations: 0 / 309.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001645/0.1565, allocations: 0 / 309.1 MB, free: 10.64 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.004217/0.1607, allocations: 3.749 MB / 312.9 MB, free: 7.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.1608, allocations: 8.031 kB / 312.9 MB, free: 7.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002244/0.163, allocations: 0.9418 MB / 313.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.1646, allocations: 1.461 MB / 315.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.891e-05/0.1646, allocations: 194.2 kB / 315.5 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002352/0.1649, allocations: 249.8 kB / 315.7 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003914/0.1688, allocations: 4.244 MB / 319.9 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.158e-05/0.1689, allocations: 42.09 kB / 320 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.169, allocations: 129.3 kB / 320.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001165/0.1702, allocations: 1.467 MB / 321.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003691/0.1739, allocations: 2.101 MB / 323.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02035/0.1943, allocations: 27.43 MB / 351.1 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/0.197, allocations: 1.295 MB / 352.4 MB, free: 452 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003607/0.1973, allocations: 279.2 kB / 352.7 MB, free: 168 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004062/0.2014, allocations: 2.99 MB / 355.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.2014, allocations: 49.69 kB / 355.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 3.366e-06/0.2014, allocations: 0 / 355.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.006537/0.208, allocations: 2.67 MB / 358.4 MB, free: 10.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.208, allocations: 140.2 kB / 358.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.2107, allocations: 2.896 MB / 361.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.128e-05/0.2108, allocations: 48.75 kB / 361.5 MB, free: 7.859 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.2119, allocations: 2.754 MB / 364.2 MB, free: 5.219 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003624/0.2123, allocations: 460.7 kB / 364.7 MB, free: 4.766 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/0.2134, allocations: 1.013 MB / 365.7 MB, free: 3.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.045e-05/0.2134, allocations: 305.1 kB / 366 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009341/0.2144, allocations: 0.6152 MB / 366.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002527/0.2169, allocations: 4.011 MB / 370.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004395/0.2213, allocations: 5.117 MB / 375.7 MB, free: 6.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.054e-05/0.2214, allocations: 36 kB / 375.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004983/0.2264, allocations: 3.592 MB / 379.3 MB, free: 2.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.274e-05/0.2264, allocations: 60 kB / 379.4 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.2265, allocations: 128.9 kB / 379.5 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.2266, allocations: 167.9 kB / 379.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002234/0.2289, allocations: 1.271 MB / 381 MB, free: 1.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001159/0.229, allocations: 247 kB / 381.2 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/0.2312, allocations: 243.7 kB / 381.4 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/0.2316, allocations: 289.8 kB / 381.7 MB, free: 248 kB / 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.001207/0.2328, allocations: 0.568 MB / 382.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.2331, allocations: 175.7 kB / 382.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007256/0.2338, allocations: 0.5009 MB / 383 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.2339, allocations: 12 kB / 383 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2339, allocations: 3.984 kB / 383 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.2339, allocations: 0 / 383 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.2376, allocations: 2.19 MB / 385.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.2376, allocations: 8.031 kB / 385.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.238, allocations: 135.8 kB / 385.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/0.2382, allocations: 43.64 kB / 385.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/0.2383, allocations: 16 kB / 385.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.2394, allocations: 1.429 MB / 386.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2394, allocations: 7.938 kB / 386.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2406, allocations: 1.214 MB / 388 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.241, allocations: 257.9 kB / 388.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.2411, allocations: 12 kB / 388.3 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.2416, allocations: 23.98 kB / 388.3 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.209e-05/0.2417, allocations: 55.97 kB / 388.4 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.2417, allocations: 27.98 kB / 388.4 MB, free: 9.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009543/0.2427, allocations: 1.024 MB / 389.4 MB, free: 8.316 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2427, allocations: 0 / 389.4 MB, free: 8.316 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002918/0.2456, allocations: 0.7773 MB / 390.2 MB, free: 7.539 MB / 346.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.0003707/0.246, allocations: 148.1 kB / 390.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.2491, allocations: 1.944 MB / 392.3 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001634/0.2492, allocations: 92.91 kB / 392.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005368/0.2498, allocations: 348.4 kB / 392.7 MB, free: 5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.2516, allocations: 0.4895 MB / 393.2 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007906/0.2595, allocations: 5.751 MB / 399 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008588/0.2604, allocations: 0.9933 MB / 399.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001008/0.2614, allocations: 421.5 kB / 400.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006229/0.262, allocations: 473.2 kB / 400.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.773e-06/0.262, allocations: 0 / 400.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of Templates: time 0.0355/0.2975, allocations: 21.85 MB / 422.7 MB, free: 7.227 MB / 378.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 -s gbode -gbm=radauIIA3 -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.4924504067748785]