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.0008293/0.0008293, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.0009043/0.0009043, allocations: 166.5 kB / 25.61 MB, free: 8.48 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 1.016/1.016, allocations: 177.1 MB / 206.1 MB, free: 4.508 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.273e-06/1.273e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.211e-05, allocations: 5.266 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.008361/0.008383, allocations: 9.653 MB / 283.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006874/0.01526, allocations: 3.686 MB / 287.5 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.01638, allocations: 71.62 kB / 287.6 MB, free: 6.965 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005173/0.02155, allocations: 2.059 MB / 289.7 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004645/0.0262, allocations: 1.734 MB / 291.4 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.02771, allocations: 0.6664 MB / 292.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.03099, allocations: 3.758 MB / 295.8 MB, free: 14.72 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002602/0.03359, allocations: 2.458 MB / 298.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002343/0.03593, allocations: 1.941 MB / 300.2 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.03816, allocations: 1.835 MB / 302.1 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005461/0.0387, allocations: 256 kB / 302.3 MB, free: 8.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.03996, allocations: 0.9711 MB / 303.3 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.04104, allocations: 1.675 MB / 305 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.04226, allocations: 1.032 MB / 306 MB, free: 4.484 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003676/0.04594, allocations: 3.791 MB / 309.8 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.04594, allocations: 0 / 309.8 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.04594, allocations: 0 / 309.8 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001976/0.04614, allocations: 0 / 309.8 MB, free: 0.6797 MB / 282.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.00529/0.05143, allocations: 4.254 MB / 314 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.05147, allocations: 8.031 kB / 314 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00284/0.05431, allocations: 1.286 MB / 315.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.05629, allocations: 1.597 MB / 316.9 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.05641, allocations: 201 kB / 317.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002968/0.05671, allocations: 251.8 kB / 317.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005002/0.06171, allocations: 4.772 MB / 322.1 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.749e-05/0.06179, allocations: 43.62 kB / 322.2 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002199/0.06201, allocations: 127.9 kB / 322.3 MB, free: 3.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001258/0.06326, allocations: 1.465 MB / 323.8 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003808/0.06707, allocations: 2.081 MB / 325.9 MB, free: 15.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1676/0.2347, allocations: 38.42 MB / 364.3 MB, free: 48.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003197/0.2379, allocations: 1.336 MB / 365.6 MB, free: 48.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.2383, allocations: 338.5 kB / 365.9 MB, free: 48.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003646/0.242, allocations: 3.243 MB / 369.2 MB, free: 47.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.242, allocations: 50.8 kB / 369.2 MB, free: 47.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=103): time 2.555e-06/0.242, allocations: 0 / 369.2 MB, free: 47.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.006919/0.2489, allocations: 3.123 MB / 372.4 MB, free: 46.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.2489, allocations: 142 kB / 372.5 MB, free: 46.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/0.2515, allocations: 3.239 MB / 375.7 MB, free: 46.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.2516, allocations: 35.92 kB / 375.8 MB, free: 46.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.2529, allocations: 3.11 MB / 378.9 MB, free: 44.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.2532, allocations: 479.4 kB / 379.3 MB, free: 44.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008316/0.254, allocations: 1.188 MB / 380.5 MB, free: 43.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.347e-05/0.254, allocations: 477.3 kB / 381 MB, free: 43.47 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006653/0.2547, allocations: 449.5 kB / 381.4 MB, free: 43.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.257, allocations: 5.71 MB / 387.1 MB, free: 36.62 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/0.2606, allocations: 6.754 MB / 393.9 MB, free: 29.4 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.626e-05/0.2607, allocations: 34.97 kB / 393.9 MB, free: 29.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004413/0.2651, allocations: 4.221 MB / 398.2 MB, free: 25.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.2652, allocations: 61 kB / 398.2 MB, free: 25.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.144e-05/0.2652, allocations: 124 kB / 398.3 MB, free: 25.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.265e-05/0.2653, allocations: 177.2 kB / 398.5 MB, free: 25.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/0.2672, allocations: 1.213 MB / 399.7 MB, free: 24.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001323/0.2674, allocations: 244.7 kB / 400 MB, free: 24.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/0.2695, allocations: 243.6 kB / 400.2 MB, free: 23.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002324/0.2698, allocations: 292 kB / 400.5 MB, free: 23.49 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.0008451/0.2706, allocations: 0.6068 MB / 401.1 MB, free: 22.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003472/0.271, allocations: 318.1 kB / 401.4 MB, free: 22.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006623/0.2716, allocations: 0.5576 MB / 402 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.2717, allocations: 15.14 kB / 402 MB, free: 21.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2717, allocations: 3.391 kB / 402 MB, free: 21.99 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.2717, allocations: 7.984 kB / 402 MB, free: 21.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.2751, allocations: 2.382 MB / 404.4 MB, free: 19.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.2751, allocations: 4.156 kB / 404.4 MB, free: 19.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.2754, allocations: 131.8 kB / 404.5 MB, free: 19.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/0.2756, allocations: 39.64 kB / 404.5 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.2757, allocations: 27.05 kB / 404.6 MB, free: 19.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008891/0.2765, allocations: 1.805 MB / 406.4 MB, free: 17.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2765, allocations: 0 / 406.4 MB, free: 17.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.2777, allocations: 1.454 MB / 407.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.278, allocations: 258 kB / 408.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.2782, allocations: 19.94 kB / 408.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004537/0.2786, allocations: 15.98 kB / 408.1 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.2787, allocations: 59.84 kB / 408.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.2788, allocations: 27.34 kB / 408.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009887/0.2797, allocations: 1.281 MB / 409.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2797, allocations: 0 / 409.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003103/0.2828, allocations: 0.7889 MB / 410.3 MB, free: 13.47 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.0003052/0.2832, allocations: 159 kB / 410.4 MB, free: 13.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.2855, allocations: 2.099 MB / 412.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2855, allocations: 0 / 412.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.2859, allocations: 434.4 kB / 412.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.287, allocations: 348.2 kB / 413.3 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006258/0.2933, allocations: 5.783 MB / 419.1 MB, free: 4.594 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007017/0.294, allocations: 0.9931 MB / 420.1 MB, free: 3.586 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009649/0.295, allocations: 421.9 kB / 420.5 MB, free: 3.172 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005197/0.2955, allocations: 0.4981 MB / 421 MB, free: 2.672 MB / 330.7 MB Notification: Performance of SimCode: time 2.254e-06/0.2955, allocations: 0 / 421 MB, free: 2.672 MB / 330.7 MB Notification: Performance of Templates: time 0.03598/0.3315, allocations: 22.38 MB / 443.4 MB, free: 12.78 MB / 362.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.978876610752195]