Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 107.9 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009399/0.0009401, allocations: 39.94 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2278, allocations: 49.45 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02257/0.2504, allocations: 34.68 MB / 434.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.2686, allocations: 7.893 MB / 442.1 MB, free: 6.652 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005791/0.2745, allocations: 147.6 kB / 442.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003798/0.2783, allocations: 1.921 MB / 444.1 MB, free: 4.582 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004107/0.2825, allocations: 1.545 MB / 445.7 MB, free: 3.031 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001431/0.2839, allocations: 0.5577 MB / 446.2 MB, free: 2.473 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005343/0.2893, allocations: 4.768 MB / 451 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00324/0.2925, allocations: 2.524 MB / 453.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.2943, allocations: 1.113 MB / 454.6 MB, free: 10 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.2967, allocations: 1.787 MB / 456.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006796/0.2974, allocations: 176 kB / 456.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002026/0.2995, allocations: 1.03 MB / 457.6 MB, free: 7.004 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.3015, allocations: 1.508 MB / 459.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002376/0.3039, allocations: 1.762 MB / 460.9 MB, free: 3.719 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007289/0.3112, allocations: 5.564 MB / 466.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3112, allocations: 0 / 466.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3112, allocations: 0 / 466.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.776e-05/0.3113, allocations: 3.938 kB / 466.5 MB, free: 14.13 MB / 346.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.009706/0.3211, allocations: 4.01 MB / 470.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.3211, allocations: 12.03 kB / 470.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007237/0.3284, allocations: 1.77 MB / 472.2 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004061/0.3325, allocations: 1.924 MB / 474.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.3326, allocations: 192.8 kB / 474.4 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004378/0.333, allocations: 251.8 kB / 474.6 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.3452, allocations: 8.427 MB / 483 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.438e-05/0.3453, allocations: 39.59 kB / 483.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003045/0.3456, allocations: 127.9 kB / 483.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002587/0.3482, allocations: 1.695 MB / 484.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.3604, allocations: 7.11 MB / 492 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2447/0.6052, allocations: 34.15 MB / 0.5138 GB, free: 75.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007169/0.6124, allocations: 3.278 MB / 0.517 GB, free: 74.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.614, allocations: 1.463 MB / 0.5184 GB, free: 73.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005602/0.6196, allocations: 4.347 MB / 0.5227 GB, free: 70.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.6197, allocations: 50.09 kB / 0.5227 GB, free: 70.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.426e-06/0.6197, allocations: 0 / 0.5227 GB, free: 70.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02563/0.6453, allocations: 11.52 MB / 0.534 GB, free: 62.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.6454, allocations: 145.1 kB / 0.5341 GB, free: 62.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.6491, allocations: 3.716 MB / 0.5378 GB, free: 58.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.6493, allocations: 41.7 kB / 0.5378 GB, free: 58.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.6503, allocations: 2.753 MB / 0.5405 GB, free: 55.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/0.6506, allocations: 0.5166 MB / 0.541 GB, free: 55.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009355/0.6515, allocations: 1.079 MB / 0.542 GB, free: 54.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.447e-05/0.6516, allocations: 305.1 kB / 0.5423 GB, free: 53.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.6533, allocations: 1.705 MB / 0.544 GB, free: 52.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002844/0.6562, allocations: 5.128 MB / 0.549 GB, free: 45.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005493/0.6617, allocations: 7.418 MB / 0.5562 GB, free: 36.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.948e-05/0.6618, allocations: 36 kB / 0.5563 GB, free: 36.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008697/0.6705, allocations: 6.725 MB / 0.5628 GB, free: 29.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.6706, allocations: 60 kB / 0.5629 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.164e-05/0.6706, allocations: 122.7 kB / 0.563 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/0.6712, allocations: 325.4 kB / 0.5633 GB, free: 29.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002948/0.6741, allocations: 1.244 MB / 0.5645 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/0.6761, allocations: 2.278 MB / 0.5668 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0046/0.6807, allocations: 291.6 kB / 0.567 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004622/0.6812, allocations: 335.7 kB / 0.5674 GB, free: 24.88 MB / 378.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.002359/0.6836, allocations: 1.795 MB / 0.5691 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005514/0.6841, allocations: 308 kB / 0.5694 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00409/0.6882, allocations: 2.359 MB / 0.5717 GB, free: 20.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/0.6883, allocations: 12 kB / 0.5717 GB, free: 20.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.6883, allocations: 4 kB / 0.5717 GB, free: 20.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.6883, allocations: 11.92 kB / 0.5717 GB, free: 20.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.6984, allocations: 5.929 MB / 0.5775 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.6984, allocations: 0 / 0.5775 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.6992, allocations: 175.8 kB / 0.5777 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.7011, allocations: 0.7147 MB / 0.5784 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-05/0.7012, allocations: 20 kB / 0.5784 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004321/0.7055, allocations: 4.472 MB / 0.5828 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7056, allocations: 0 / 0.5828 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04385/0.7494, allocations: 26.03 MB / 0.6082 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005587/0.75, allocations: 361 kB / 0.6086 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000275/0.7503, allocations: 16 kB / 0.6086 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.7513, allocations: 67.84 kB / 0.6086 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.7515, allocations: 68.56 kB / 0.6087 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.911e-05/0.7516, allocations: 34.27 kB / 0.6087 GB, free: 13.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003859/0.7555, allocations: 2.323 MB / 0.611 GB, free: 11.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.7555, allocations: 8.062 kB / 0.611 GB, free: 11.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007263/0.7628, allocations: 1.095 MB / 0.6121 GB, free: 10.58 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.000437/0.7633, allocations: 156.2 kB / 0.6122 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005974/0.7692, allocations: 4.038 MB / 0.6162 GB, free: 6.402 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.7693, allocations: 0.5 kB / 0.6162 GB, free: 6.402 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.7706, allocations: 1.107 MB / 0.6173 GB, free: 5.285 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/0.7728, allocations: 377.2 kB / 0.6176 GB, free: 4.918 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.7866, allocations: 9.937 MB / 0.6273 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/0.7896, allocations: 2.825 MB / 0.6301 GB, free: 8.074 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004212/0.7938, allocations: 1.676 MB / 0.6317 GB, free: 6.395 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00065/0.7945, allocations: 207.4 kB / 0.6319 GB, free: 6.191 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7945, allocations: 0 / 0.6319 GB, free: 6.191 MB / 426.7 MB Notification: Performance of Templates: time 0.09234/0.8868, allocations: 36.07 MB / 0.6671 GB, free: 2.301 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches