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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007805/0.0007806, allocations: 92.67 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000838/0.000838, allocations: 176 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.112/1.112, allocations: 223.3 MB / 242.3 MB, free: 14.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002023, allocations: 8 kB / 302.1 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0694/0.06961, allocations: 50.41 MB / 352.5 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1524/0.222, allocations: 33.68 MB / 386.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.2341, allocations: 7.83 MB / 394 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004325/0.2385, allocations: 150.8 kB / 394.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008027/0.2393, allocations: 368.1 kB / 394.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002738/0.242, allocations: 1.557 MB / 396.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009205/0.243, allocations: 0.5557 MB / 396.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003332/0.2463, allocations: 4.739 MB / 401.4 MB, free: 492 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003155/0.2495, allocations: 3.269 MB / 404.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009012/0.2504, allocations: 0.9554 MB / 405.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.2518, allocations: 1.603 MB / 407.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.252, allocations: 114.5 kB / 407.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.2533, allocations: 0.967 MB / 408.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009751/0.2543, allocations: 1.429 MB / 409.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.2555, allocations: 1.67 MB / 411.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.2586, allocations: 4.436 MB / 415.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2586, allocations: 0 / 415.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2586, allocations: 0 / 415.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.2586, allocations: 0 / 415.8 MB, free: 4.82 MB / 318.1 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.004227/0.2629, allocations: 3.305 MB / 419.1 MB, free: 1.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2629, allocations: 8.031 kB / 419.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005441/0.2683, allocations: 1.825 MB / 420.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/0.2707, allocations: 1.912 MB / 422.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.2708, allocations: 192.8 kB / 423 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003934/0.2712, allocations: 251.8 kB / 423.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009676/0.2809, allocations: 8.439 MB / 431.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.13e-05/0.281, allocations: 39.59 kB / 431.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.2813, allocations: 127.9 kB / 431.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002371/0.2836, allocations: 1.703 MB / 433.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009868/0.2935, allocations: 7.103 MB / 440.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02757/0.3211, allocations: 34.15 MB / 474.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006204/0.3273, allocations: 3.28 MB / 478.1 MB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.3289, allocations: 1.46 MB / 479.6 MB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00449/0.3334, allocations: 4.365 MB / 484 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.3334, allocations: 43.12 kB / 484 MB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 2.425e-06/0.3334, allocations: 0 / 484 MB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02363/0.3571, allocations: 11.5 MB / 495.5 MB, free: 2.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.3571, allocations: 145.2 kB / 495.6 MB, free: 2.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/0.3609, allocations: 3.713 MB / 499.4 MB, free: 14.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.72e-05/0.361, allocations: 45.7 kB / 499.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.3626, allocations: 2.748 MB / 0.4904 GB, free: 12.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.363, allocations: 0.5132 MB / 0.4909 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004506/0.3634, allocations: 465.7 kB / 0.4913 GB, free: 11.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.3635, allocations: 305.1 kB / 0.4916 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/0.3656, allocations: 1.712 MB / 0.4933 GB, free: 9.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003872/0.3695, allocations: 5.124 MB / 0.4983 GB, free: 2.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006587/0.3761, allocations: 7.42 MB / 0.5055 GB, free: 9.086 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.988e-05/0.3762, allocations: 36 kB / 0.5056 GB, free: 9.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008545/0.3847, allocations: 6.721 MB / 0.5121 GB, free: 2.324 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.063e-05/0.3848, allocations: 59.94 kB / 0.5122 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-05/0.3849, allocations: 128 kB / 0.5123 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005075/0.3854, allocations: 321.2 kB / 0.5126 GB, free: 1.824 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.3885, allocations: 1.252 MB / 0.5138 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.3905, allocations: 2.274 MB / 0.5161 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/0.3929, allocations: 287.4 kB / 0.5163 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/0.3932, allocations: 336 kB / 0.5167 GB, free: 13.55 MB / 446.1 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.00182/0.395, allocations: 1.795 MB / 0.5184 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003358/0.3954, allocations: 312 kB / 0.5187 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.3994, allocations: 2.355 MB / 0.521 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/0.3995, allocations: 19.94 kB / 0.521 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3995, allocations: 4.469 kB / 0.521 GB, free: 9.043 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.3995, allocations: 3.984 kB / 0.521 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008522/0.408, allocations: 5.934 MB / 0.5268 GB, free: 3.035 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.408, allocations: 0 / 0.5268 GB, free: 3.035 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.4087, allocations: 175.8 kB / 0.527 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.4107, allocations: 0.7148 MB / 0.5277 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/0.4107, allocations: 27.94 kB / 0.5277 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1397/0.5504, allocations: 4.462 MB / 0.5321 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5505, allocations: 3.25 kB / 0.5321 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005962/0.5564, allocations: 4.328 MB / 0.5363 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005896/0.557, allocations: 367.3 kB / 0.5367 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003711/0.5574, allocations: 24.16 kB / 0.5367 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.5584, allocations: 64.64 kB / 0.5367 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.5586, allocations: 67.62 kB / 0.5368 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/0.5587, allocations: 37.2 kB / 0.5368 GB, free: 145.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003291/0.562, allocations: 2.321 MB / 0.5391 GB, free: 144.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.562, allocations: 0 / 0.5391 GB, free: 144.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003284/0.5653, allocations: 0.8186 MB / 0.5399 GB, free: 144.5 MB / 446.1 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.0002862/0.5656, allocations: 158.4 kB / 0.5401 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.5706, allocations: 4.029 MB / 0.544 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5706, allocations: 5.219 kB / 0.544 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.5719, allocations: 1.107 MB / 0.5451 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/0.5741, allocations: 363 kB / 0.5454 GB, free: 142.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009093/0.5832, allocations: 9.4 MB / 0.5546 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/0.5852, allocations: 2.784 MB / 0.5573 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005229/0.5858, allocations: 252.6 kB / 0.5576 GB, free: 136.3 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.5858, allocations: 0 / 0.5576 GB, free: 136.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04833/0.6341, allocations: 63.22 MB / 0.6193 GB, free: 76.91 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches