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.0007952/0.0007953, allocations: 94.33 kB / 16.65 MB, free: 6.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.0009553/0.0009554, allocations: 180.7 kB / 17.56 MB, free: 6.203 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.308/1.308, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.000262, allocations: 5.375 kB / 301.4 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09216, allocations: 50.41 MB / 351.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2379/0.3301, allocations: 33.68 MB / 385.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.3493, allocations: 7.831 MB / 393.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00831/0.3576, allocations: 146 kB / 393.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001984/0.3597, allocations: 373.7 kB / 393.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006309/0.366, allocations: 1.56 MB / 395.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.368, allocations: 0.5573 MB / 396 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006793/0.3748, allocations: 4.737 MB / 400.7 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004398/0.3792, allocations: 3.277 MB / 404 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001812/0.381, allocations: 0.9457 MB / 404.9 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.383, allocations: 1.602 MB / 406.5 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.3834, allocations: 114.1 kB / 406.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.3852, allocations: 0.9764 MB / 407.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001422/0.3866, allocations: 1.426 MB / 409 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.3883, allocations: 1.678 MB / 410.7 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005779/0.3941, allocations: 5.416 MB / 416.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3941, allocations: 0 / 416.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3941, allocations: 0 / 416.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.3942, allocations: 0 / 416.1 MB, free: 4.02 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.006426/0.4007, allocations: 3.309 MB / 419.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.4007, allocations: 12.03 kB / 419.5 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006769/0.4075, allocations: 1.821 MB / 421.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003999/0.4115, allocations: 1.908 MB / 423.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.4117, allocations: 192.8 kB / 423.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006037/0.4123, allocations: 255.8 kB / 423.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01435/0.4267, allocations: 8.435 MB / 432.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/0.4268, allocations: 47.59 kB / 432.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003731/0.4272, allocations: 123.9 kB / 432.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002786/0.43, allocations: 1.695 MB / 433.9 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.4439, allocations: 7.11 MB / 441 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.483, allocations: 34.15 MB / 475.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007638/0.4907, allocations: 3.282 MB / 478.5 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002071/0.4928, allocations: 1.465 MB / 479.9 MB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006754/0.4996, allocations: 4.354 MB / 484.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.4997, allocations: 43.12 kB / 484.3 MB, free: 13.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.877e-06/0.4997, allocations: 0 / 484.3 MB, free: 13.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02876/0.5284, allocations: 11.5 MB / 495.8 MB, free: 1.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/0.5286, allocations: 145.1 kB / 496 MB, free: 1.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/0.5335, allocations: 3.717 MB / 499.7 MB, free: 14.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002295/0.5337, allocations: 41.7 kB / 499.7 MB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001907/0.5357, allocations: 2.748 MB / 0.4907 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006061/0.5363, allocations: 0.521 MB / 0.4912 GB, free: 10.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005261/0.5368, allocations: 465.7 kB / 0.4917 GB, free: 10.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.5369, allocations: 309.1 kB / 0.4919 GB, free: 9.973 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.5394, allocations: 1.701 MB / 0.4936 GB, free: 8.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004782/0.5442, allocations: 5.124 MB / 0.4986 GB, free: 1.414 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007951/0.5521, allocations: 7.421 MB / 0.5059 GB, free: 8.281 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-05/0.5522, allocations: 36 kB / 0.5059 GB, free: 8.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01131/0.5636, allocations: 6.728 MB / 0.5125 GB, free: 1.512 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-05/0.5637, allocations: 59.94 kB / 0.5125 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.5638, allocations: 120.9 kB / 0.5126 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005994/0.5644, allocations: 320.7 kB / 0.5129 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/0.5681, allocations: 1.244 MB / 0.5142 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.5707, allocations: 2.283 MB / 0.5164 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/0.5743, allocations: 295.5 kB / 0.5167 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005693/0.5749, allocations: 336 kB / 0.517 GB, free: 12.74 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.00293/0.5779, allocations: 1.783 MB / 0.5187 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000481/0.5784, allocations: 308 kB / 0.519 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/0.583, allocations: 2.359 MB / 0.5213 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.768e-05/0.5831, allocations: 23.92 kB / 0.5213 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.5831, allocations: 4 kB / 0.5214 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/0.5831, allocations: 7.922 kB / 0.5214 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.594, allocations: 5.926 MB / 0.5271 GB, free: 2.234 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.594, allocations: 4 kB / 0.5272 GB, free: 2.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.5949, allocations: 171.8 kB / 0.5273 GB, free: 2.062 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/0.5971, allocations: 0.7108 MB / 0.528 GB, free: 1.348 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.5973, allocations: 27.92 kB / 0.528 GB, free: 1.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1962/0.7935, allocations: 4.461 MB / 0.5324 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.7935, allocations: 2.031 kB / 0.5324 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007266/0.8008, allocations: 4.326 MB / 0.5366 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.8019, allocations: 369.2 kB / 0.537 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.8022, allocations: 18.88 kB / 0.537 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.8033, allocations: 69.52 kB / 0.5371 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.8035, allocations: 66.61 kB / 0.5371 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.8036, allocations: 45.09 kB / 0.5372 GB, free: 145.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004025/0.8077, allocations: 2.321 MB / 0.5394 GB, free: 144.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.8077, allocations: 0 / 0.5394 GB, free: 144.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005031/0.8127, allocations: 0.8143 MB / 0.5402 GB, free: 144.4 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.0004123/0.8131, allocations: 162.2 kB / 0.5404 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006765/0.8199, allocations: 4.03 MB / 0.5443 GB, free: 143 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.82, allocations: 0 / 0.5443 GB, free: 143 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.8214, allocations: 1.104 MB / 0.5454 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/0.8244, allocations: 375.1 kB / 0.5457 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.8359, allocations: 9.019 MB / 0.5546 GB, free: 137.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00226/0.8382, allocations: 2.785 MB / 0.5573 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003576/0.8418, allocations: 1.662 MB / 0.5589 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005585/0.8423, allocations: 211.3 kB / 0.5591 GB, free: 136.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8424, allocations: 0 / 0.5591 GB, free: 136.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04667/0.889, allocations: 29.41 MB / 0.5878 GB, free: 108.8 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/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