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.00194/0.00194, allocations: 108.8 kB / 17.06 MB, free: 6.129 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.002064/0.002064, allocations: 191 kB / 18 MB, free: 5.207 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.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009502/0.0009502, allocations: 47.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2689, allocations: 49.45 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01031/0.2793, allocations: 10.21 MB / 410.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00619/0.2855, allocations: 3.783 MB / 414.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007019/0.2862, allocations: 55.81 kB / 414.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00326/0.2895, allocations: 1.954 MB / 416.7 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.2924, allocations: 1.693 MB / 418.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.2935, allocations: 0.616 MB / 419 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003458/0.297, allocations: 3.333 MB / 422.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002634/0.2996, allocations: 2.568 MB / 424.9 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.3009, allocations: 1.238 MB / 426.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001697/0.3027, allocations: 1.674 MB / 427.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003548/0.303, allocations: 252 kB / 428.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.3045, allocations: 1.037 MB / 429.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.3058, allocations: 1.582 MB / 430.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.3074, allocations: 1.821 MB / 432.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005872/0.3133, allocations: 5.825 MB / 438.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.3133, allocations: 8 kB / 438.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3134, allocations: 4 kB / 438.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001071/0.3135, allocations: 0 / 438.4 MB, free: 3.047 MB / 350.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.006828/0.3203, allocations: 4.01 MB / 442.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3204, allocations: 15.83 kB / 442.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005757/0.3261, allocations: 1.782 MB / 444.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.3294, allocations: 1.939 MB / 446.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.3295, allocations: 192.8 kB / 446.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.33, allocations: 259.7 kB / 446.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01281/0.3428, allocations: 8.427 MB / 455 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/0.3429, allocations: 43.59 kB / 455 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003151/0.3432, allocations: 123.9 kB / 455.2 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002603/0.3459, allocations: 1.695 MB / 456.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.3598, allocations: 7.102 MB / 464 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04154/0.4014, allocations: 34.02 MB / 498 MB, free: 5.645 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00732/0.4087, allocations: 3.28 MB / 0.4895 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/0.4107, allocations: 1.464 MB / 0.4909 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007821/0.4185, allocations: 4.365 MB / 0.4952 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.4186, allocations: 55.06 kB / 0.4953 GB, free: 12.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 5.17e-06/0.4187, allocations: 0 / 0.4953 GB, free: 12.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.0308/0.4495, allocations: 11.51 MB / 0.5065 GB, free: 452 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.922e-05/0.4496, allocations: 141.2 kB / 0.5066 GB, free: 280 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007018/0.4566, allocations: 3.721 MB / 0.5103 GB, free: 12.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.4568, allocations: 41.7 kB / 0.5103 GB, free: 12.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002156/0.4589, allocations: 2.748 MB / 0.513 GB, free: 9.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006312/0.4596, allocations: 0.5248 MB / 0.5135 GB, free: 9.191 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001909/0.4615, allocations: 1.075 MB / 0.5145 GB, free: 8.105 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4616, allocations: 301.4 kB / 0.5148 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002663/0.4643, allocations: 1.709 MB / 0.5165 GB, free: 6.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00528/0.4696, allocations: 5.135 MB / 0.5215 GB, free: 15.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008203/0.4778, allocations: 7.416 MB / 0.5288 GB, free: 6.105 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.983e-05/0.4779, allocations: 36 kB / 0.5288 GB, free: 6.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.2513/0.7292, allocations: 6.716 MB / 0.5354 GB, free: 124.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.7294, allocations: 57.38 kB / 0.5354 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/0.7296, allocations: 121.6 kB / 0.5355 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008549/0.7305, allocations: 325 kB / 0.5358 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003983/0.7345, allocations: 1.246 MB / 0.537 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.7368, allocations: 2.497 MB / 0.5395 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/0.741, allocations: 281.7 kB / 0.5398 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005766/0.7416, allocations: 335.2 kB / 0.5401 GB, free: 123.1 MB / 462.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.002406/0.744, allocations: 1.792 MB / 0.5418 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004464/0.7445, allocations: 309.7 kB / 0.5421 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.7482, allocations: 2.357 MB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.7482, allocations: 18.25 kB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.7482, allocations: 3.906 kB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.7482, allocations: 3.656 kB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008652/0.7569, allocations: 5.909 MB / 0.5502 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.7569, allocations: 3.719 kB / 0.5502 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.7577, allocations: 173.8 kB / 0.5504 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.7596, allocations: 0.7128 MB / 0.5511 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.68e-05/0.7597, allocations: 22.25 kB / 0.5511 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004504/0.7642, allocations: 4.808 MB / 0.5558 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.7642, allocations: 1.188 kB / 0.5558 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006031/0.7702, allocations: 4.33 MB / 0.56 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008925/0.7712, allocations: 363.5 kB / 0.5604 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002963/0.7715, allocations: 20 kB / 0.5604 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009587/0.7724, allocations: 71.14 kB / 0.5605 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.7726, allocations: 68.56 kB / 0.5605 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.938e-05/0.7727, allocations: 32 kB / 0.5606 GB, free: 112.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.7755, allocations: 2.319 MB / 0.5628 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7755, allocations: 0 / 0.5628 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003835/0.7794, allocations: 0.8187 MB / 0.5636 GB, free: 109.7 MB / 462.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.0003612/0.7797, allocations: 159.7 kB / 0.5638 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005313/0.7851, allocations: 4.055 MB / 0.5677 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.7851, allocations: 0 / 0.5677 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.7863, allocations: 1.111 MB / 0.5688 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.7885, allocations: 398.1 kB / 0.5692 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.7997, allocations: 7.251 MB / 0.5763 GB, free: 96.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.8019, allocations: 2.789 MB / 0.579 GB, free: 94.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00307/0.805, allocations: 1.66 MB / 0.5806 GB, free: 92.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000481/0.8055, allocations: 211.4 kB / 0.5808 GB, free: 92.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/0.8055, allocations: 0 / 0.5808 GB, free: 92.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04705/0.8525, allocations: 27.9 MB / 0.6081 GB, free: 64.52 MB / 462.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