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.0009/0.0009, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004123/0.004123, allocations: 157.3 kB / 24.69 MB, free: 9.43 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.8731/0.8731, allocations: 177.1 MB / 205 MB, free: 5.742 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.603e-06/1.603e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.735e-05, allocations: 4.672 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.009137/0.009154, allocations: 8.987 MB / 334.8 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00404/0.01319, allocations: 3.639 MB / 338.5 MB, free: 2.738 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004596/0.01365, allocations: 67.69 kB / 338.5 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.01548, allocations: 1.981 MB / 340.5 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001704/0.01719, allocations: 1.734 MB / 342.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005925/0.01778, allocations: 0.6626 MB / 342.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.01988, allocations: 3.753 MB / 346.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.02139, allocations: 2.371 MB / 349 MB, free: 8.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.02263, allocations: 1.886 MB / 350.9 MB, free: 6.199 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.0239, allocations: 1.812 MB / 352.7 MB, free: 4.383 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002173/0.02412, allocations: 260 kB / 353 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008426/0.02496, allocations: 0.9711 MB / 354 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008174/0.02578, allocations: 1.671 MB / 355.6 MB, free: 1.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000626/0.0264, allocations: 1.024 MB / 356.7 MB, free: 464 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003295/0.0297, allocations: 5.813 MB / 362.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.0297, allocations: 0 / 362.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0297, allocations: 4 kB / 362.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.638e-05/0.02974, allocations: 0 / 362.5 MB, free: 10.62 MB / 330.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.003635/0.03337, allocations: 4.041 MB / 366.5 MB, free: 6.523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.03341, allocations: 8.031 kB / 366.5 MB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/0.03645, allocations: 1.824 MB / 368.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.03838, allocations: 1.864 MB / 370.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.998e-05/0.03847, allocations: 197 kB / 370.4 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.03875, allocations: 259.8 kB / 370.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006822/0.04557, allocations: 8.472 MB / 379.1 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.852e-05/0.04563, allocations: 43.7 kB / 379.2 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002131/0.04584, allocations: 119.9 kB / 379.3 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001442/0.04728, allocations: 1.715 MB / 381 MB, free: 7.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007025/0.05431, allocations: 7.09 MB / 388.1 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01944/0.07375, allocations: 32.23 MB / 420.3 MB, free: 15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003866/0.07762, allocations: 2.817 MB / 423.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.07871, allocations: 1.361 MB / 424.5 MB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003274/0.08198, allocations: 3.454 MB / 428 MB, free: 7.277 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.08201, allocations: 51.16 kB / 428 MB, free: 7.219 MB / 394.7 MB Notification: Performance of pre-optimization done (n=121): time 2.595e-06/0.08201, allocations: 0 / 428 MB, free: 7.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.01563/0.09764, allocations: 11.88 MB / 439.9 MB, free: 11.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.09769, allocations: 145.1 kB / 440 MB, free: 11.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.1004, allocations: 3.509 MB / 443.5 MB, free: 7.562 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.1004, allocations: 41.7 kB / 443.6 MB, free: 7.516 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.1015, allocations: 2.848 MB / 446.4 MB, free: 4.641 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002904/0.1018, allocations: 0.535 MB / 447 MB, free: 4.102 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008168/0.1026, allocations: 1.072 MB / 448 MB, free: 3.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.1027, allocations: 309.1 kB / 448.3 MB, free: 2.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.1043, allocations: 1.709 MB / 450 MB, free: 1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1429/0.2471, allocations: 5.132 MB / 455.2 MB, free: 109.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004993/0.2521, allocations: 7.425 MB / 462.6 MB, free: 103.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-05/0.2522, allocations: 36.66 kB / 462.6 MB, free: 103.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.005522/0.2577, allocations: 6.704 MB / 469.3 MB, free: 100.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.2577, allocations: 57.91 kB / 469.4 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.137e-05/0.2578, allocations: 122.5 kB / 469.5 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003262/0.2581, allocations: 321.5 kB / 469.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.2598, allocations: 1.258 MB / 471.1 MB, free: 99.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.2611, allocations: 2.343 MB / 473.4 MB, free: 97.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.2627, allocations: 328.7 kB / 473.8 MB, free: 97.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.2629, allocations: 336 kB / 474.1 MB, free: 96.69 MB / 410.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.00142/0.2643, allocations: 1.784 MB / 475.9 MB, free: 95.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.2645, allocations: 287 kB / 476.1 MB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002148/0.2667, allocations: 2.329 MB / 478.5 MB, free: 93.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.2667, allocations: 16 kB / 478.5 MB, free: 93.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2667, allocations: 7.844 kB / 478.5 MB, free: 93.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.2667, allocations: 3.891 kB / 478.5 MB, free: 93.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.2714, allocations: 5.173 MB / 483.7 MB, free: 88.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.2714, allocations: 0 / 483.7 MB, free: 88.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.2717, allocations: 175.7 kB / 483.8 MB, free: 88.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009824/0.2727, allocations: 0.718 MB / 484.6 MB, free: 87.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.2728, allocations: 24 kB / 484.6 MB, free: 87.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002844/0.2756, allocations: 4.701 MB / 489.3 MB, free: 82.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2756, allocations: 3.938 kB / 489.3 MB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.2787, allocations: 4.298 MB / 493.6 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.2789, allocations: 275.3 kB / 493.9 MB, free: 78.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.2791, allocations: 20 kB / 493.9 MB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.2796, allocations: 102.5 kB / 494 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-05/0.2797, allocations: 76.41 kB / 494.1 MB, free: 78.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.2798, allocations: 35.98 kB / 494.1 MB, free: 78.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001273/0.281, allocations: 2.026 MB / 496.1 MB, free: 76.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.281, allocations: 0 / 496.1 MB, free: 76.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001944/0.283, allocations: 0.8739 MB / 497 MB, free: 75.27 MB / 410.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.0002907/0.2833, allocations: 171.6 kB / 497.2 MB, free: 75.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.286, allocations: 3.898 MB / 0.4893 GB, free: 71.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.286, allocations: 1.312 kB / 0.4893 GB, free: 71.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000727/0.2867, allocations: 1.037 MB / 0.4903 GB, free: 70.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.2878, allocations: 337.7 kB / 0.4906 GB, free: 69.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005399/0.2932, allocations: 7.682 MB / 0.4982 GB, free: 62.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.2945, allocations: 2.23 MB / 0.5003 GB, free: 59.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.2948, allocations: 240.5 kB / 0.5006 GB, free: 59.66 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2948, allocations: 4 kB / 0.5006 GB, free: 59.65 MB / 410.7 MB Notification: Performance of Templates: time 0.03341/0.3283, allocations: 64.57 MB / 0.5636 GB, free: 11.13 MB / 426.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.870856288820505]