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.001177/0.001177, allocations: 85.95 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.001604/0.001604, allocations: 161.2 kB / 25.6 MB, free: 8.895 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 0.8568/0.8568, allocations: 158.6 MB / 187.5 MB, free: 2.812 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 2.004e-06/2.004e-06, allocations: 0 / 251.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.742e-05, allocations: 2.312 kB / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.008096/0.008124, allocations: 9.704 MB / 261.2 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005937/0.01406, allocations: 3.686 MB / 264.9 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.01562, allocations: 71.62 kB / 264.9 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.01808, allocations: 2.055 MB / 267 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003213/0.02129, allocations: 1.773 MB / 268.8 MB, free: 5.879 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.02229, allocations: 0.678 MB / 269.4 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.02547, allocations: 3.703 MB / 273.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.02759, allocations: 2.458 MB / 275.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002071/0.02966, allocations: 1.964 MB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.03146, allocations: 1.847 MB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.03183, allocations: 256 kB / 279.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.03308, allocations: 0.9828 MB / 280.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.03414, allocations: 1.698 MB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.03531, allocations: 1.047 MB / 283.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003656/0.03896, allocations: 3.853 MB / 287.2 MB, free: 3.297 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.03897, allocations: 3.984 kB / 287.3 MB, free: 3.293 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.03897, allocations: 0 / 287.3 MB, free: 3.293 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.452e-05/0.03905, allocations: 3.938 kB / 287.3 MB, free: 3.289 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.004611/0.04367, allocations: 4.28 MB / 291.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.0437, allocations: 11.98 kB / 291.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002718/0.04642, allocations: 1.286 MB / 292.8 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.04843, allocations: 1.609 MB / 294.4 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-05/0.04853, allocations: 201 kB / 294.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002852/0.04881, allocations: 259.7 kB / 294.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005257/0.05407, allocations: 4.741 MB / 299.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.82e-05/0.05414, allocations: 43.64 kB / 299.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.05434, allocations: 127.9 kB / 299.8 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001223/0.05556, allocations: 1.469 MB / 301.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003748/0.05931, allocations: 2.066 MB / 303.3 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02524/0.08456, allocations: 38.44 MB / 341.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.08753, allocations: 1.33 MB / 343.1 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004405/0.08797, allocations: 331.8 kB / 343.4 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004308/0.09228, allocations: 3.262 MB / 346.7 MB, free: 5.395 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.09231, allocations: 49.83 kB / 346.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of pre-optimization done (n=103): time 3.586e-06/0.09232, allocations: 0 / 346.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.007483/0.0998, allocations: 3.108 MB / 349.8 MB, free: 2.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.09986, allocations: 137 kB / 350 MB, free: 2.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1145/0.2144, allocations: 3.26 MB / 353.2 MB, free: 96.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.2146, allocations: 39.52 kB / 353.3 MB, free: 96.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/0.2166, allocations: 3.102 MB / 356.4 MB, free: 94.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005805/0.2171, allocations: 493 kB / 356.9 MB, free: 94.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009614/0.2181, allocations: 1.191 MB / 358.1 MB, free: 94.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.529e-05/0.2181, allocations: 479.8 kB / 358.5 MB, free: 93.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007286/0.2189, allocations: 451.8 kB / 359 MB, free: 93.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.2209, allocations: 5.709 MB / 364.7 MB, free: 87.14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/0.2244, allocations: 6.759 MB / 371.4 MB, free: 80.1 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.537e-05/0.2245, allocations: 37.12 kB / 371.5 MB, free: 80.1 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004399/0.2289, allocations: 4.224 MB / 375.7 MB, free: 78.99 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.2289, allocations: 60.23 kB / 375.8 MB, free: 78.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.973e-05/0.229, allocations: 129.1 kB / 375.9 MB, free: 78.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001005/0.2291, allocations: 163.5 kB / 376 MB, free: 78.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.2308, allocations: 1.212 MB / 377.2 MB, free: 78.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.09e-05/0.2309, allocations: 246.4 kB / 377.5 MB, free: 78.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.233, allocations: 248.3 kB / 377.7 MB, free: 77.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.2332, allocations: 288.6 kB / 378 MB, free: 77.54 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.0007707/0.2339, allocations: 0.6082 MB / 378.6 MB, free: 76.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.2343, allocations: 310 kB / 378.9 MB, free: 76.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006517/0.2349, allocations: 0.5562 MB / 379.5 MB, free: 76.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.2349, allocations: 22.66 kB / 379.5 MB, free: 76.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2349, allocations: 1.5 kB / 379.5 MB, free: 76.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.235, allocations: 3 kB / 379.5 MB, free: 76.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/0.2386, allocations: 2.399 MB / 381.9 MB, free: 74.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.2386, allocations: 4 kB / 381.9 MB, free: 74.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.2389, allocations: 122.6 kB / 382 MB, free: 74.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.2391, allocations: 54.69 kB / 382.1 MB, free: 74.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.2392, allocations: 16 kB / 382.1 MB, free: 74.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007999/0.24, allocations: 1.795 MB / 383.9 MB, free: 72.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.24, allocations: 4 kB / 383.9 MB, free: 72.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.2414, allocations: 1.462 MB / 385.4 MB, free: 70.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.242, allocations: 339.9 kB / 385.7 MB, free: 70.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.2422, allocations: 16 kB / 385.7 MB, free: 70.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000471/0.2426, allocations: 16 kB / 385.7 MB, free: 70.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.794e-05/0.2427, allocations: 54.23 kB / 385.8 MB, free: 70.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.2428, allocations: 27.94 kB / 385.8 MB, free: 70.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001227/0.244, allocations: 1.296 MB / 387.1 MB, free: 69.44 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.244, allocations: 0 / 387.1 MB, free: 69.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003302/0.2473, allocations: 0.8122 MB / 387.9 MB, free: 68.63 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.0002971/0.2476, allocations: 170.6 kB / 388.1 MB, free: 68.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.2498, allocations: 2.098 MB / 390.2 MB, free: 66.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2498, allocations: 0 / 390.2 MB, free: 66.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003899/0.2502, allocations: 434.3 kB / 390.6 MB, free: 66.24 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.2515, allocations: 352.4 kB / 390.9 MB, free: 65.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006166/0.2576, allocations: 5.806 MB / 396.8 MB, free: 60.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.2584, allocations: 0.9988 MB / 397.8 MB, free: 59.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001035/0.2594, allocations: 425.9 kB / 398.2 MB, free: 58.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/0.26, allocations: 0.4981 MB / 398.7 MB, free: 58.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.763e-06/0.26, allocations: 0 / 398.7 MB, free: 58.2 MB / 330.7 MB Notification: Performance of Templates: time 0.03187/0.2919, allocations: 22.31 MB / 421 MB, free: 35.93 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 -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.527649543248117]