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.001207/0.001207, allocations: 115.4 kB / 17.69 MB, free: 5.312 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.001197/0.001197, allocations: 191 kB / 18.63 MB, free: 4.379 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.441/1.441, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009671/0.0009671, allocations: 58.33 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08727, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01022/0.09752, allocations: 10.22 MB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006469/0.104, allocations: 3.787 MB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009687/0.105, allocations: 59.81 kB / 365.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.1083, allocations: 1.943 MB / 367.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.1114, allocations: 1.667 MB / 369.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.1125, allocations: 0.6082 MB / 369.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1615/0.2741, allocations: 3.314 MB / 373.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003909/0.278, allocations: 2.571 MB / 375.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002548/0.2806, allocations: 1.243 MB / 376.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.2834, allocations: 1.672 MB / 378.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.2844, allocations: 254.7 kB / 378.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.2874, allocations: 1.027 MB / 379.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002326/0.2897, allocations: 1.566 MB / 381.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003374/0.2931, allocations: 1.831 MB / 383.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005857/0.299, allocations: 5.833 MB / 389.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.299, allocations: 0 / 389.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.299, allocations: 4 kB / 389.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001506/0.2992, allocations: 0 / 389.1 MB, free: 6.883 MB / 302.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.00771/0.3069, allocations: 4.005 MB / 393.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.307, allocations: 16.05 kB / 393.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005667/0.3127, allocations: 1.775 MB / 394.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003713/0.3164, allocations: 1.943 MB / 396.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.3165, allocations: 188 kB / 397 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004114/0.3169, allocations: 264.2 kB / 397.3 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.3293, allocations: 8.426 MB / 405.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.275e-05/0.3294, allocations: 40.41 kB / 405.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003392/0.3298, allocations: 128.5 kB / 405.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002604/0.3324, allocations: 1.695 MB / 407.6 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.3451, allocations: 7.101 MB / 414.7 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04096/0.3861, allocations: 34.03 MB / 448.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007132/0.3933, allocations: 3.271 MB / 452 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.3952, allocations: 1.461 MB / 453.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006314/0.4015, allocations: 4.357 MB / 457.8 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.4015, allocations: 51.11 kB / 457.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 3.577e-06/0.4016, allocations: 4 kB / 457.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.02909/0.4307, allocations: 11.5 MB / 469.3 MB, free: 10.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.4308, allocations: 153.2 kB / 469.5 MB, free: 9.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/0.4357, allocations: 3.713 MB / 473.2 MB, free: 6.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.4359, allocations: 43.27 kB / 473.2 MB, free: 6.121 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001671/0.4376, allocations: 2.752 MB / 476 MB, free: 3.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005278/0.4381, allocations: 0.5233 MB / 476.5 MB, free: 2.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/0.4394, allocations: 1.078 MB / 477.6 MB, free: 1.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.4395, allocations: 306.2 kB / 477.9 MB, free: 1.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.4418, allocations: 1.705 MB / 479.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004212/0.446, allocations: 5.131 MB / 484.7 MB, free: 8.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007404/0.4534, allocations: 7.421 MB / 492.2 MB, free: 15.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.924e-05/0.4535, allocations: 36 kB / 492.2 MB, free: 15.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01123/0.4647, allocations: 6.719 MB / 498.9 MB, free: 9.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-05/0.4648, allocations: 63.92 kB / 499 MB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/0.4649, allocations: 124 kB / 499.1 MB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005895/0.4655, allocations: 316.7 kB / 499.4 MB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003625/0.4692, allocations: 1.252 MB / 0.4889 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/0.4718, allocations: 2.492 MB / 0.4913 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003259/0.4751, allocations: 283.5 kB / 0.4916 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000386/0.4754, allocations: 338.7 kB / 0.4919 GB, free: 4.055 MB / 414.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.002365/0.4778, allocations: 1.799 MB / 0.4937 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004378/0.4783, allocations: 308 kB / 0.494 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004181/0.4825, allocations: 2.359 MB / 0.4963 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/0.4825, allocations: 16 kB / 0.4963 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4825, allocations: 4 kB / 0.4963 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4825, allocations: 7.969 kB / 0.4963 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009327/0.4918, allocations: 5.91 MB / 0.5021 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4919, allocations: 0 / 0.5021 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007237/0.4926, allocations: 179.7 kB / 0.5023 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.4945, allocations: 0.7069 MB / 0.503 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.781e-05/0.4946, allocations: 20 kB / 0.503 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005273/0.4999, allocations: 4.82 MB / 0.5077 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4999, allocations: 8.062 kB / 0.5077 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005803/0.5057, allocations: 4.327 MB / 0.5119 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007756/0.5065, allocations: 360.9 kB / 0.5123 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004197/0.5069, allocations: 21.88 kB / 0.5123 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.508, allocations: 67.84 kB / 0.5123 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.5082, allocations: 68.56 kB / 0.5124 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.971e-05/0.5082, allocations: 32 kB / 0.5124 GB, free: 14.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003548/0.5118, allocations: 2.323 MB / 0.5147 GB, free: 12.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5118, allocations: 0 / 0.5147 GB, free: 12.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005729/0.5175, allocations: 0.8182 MB / 0.5155 GB, free: 11.67 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.0005004/0.5181, allocations: 156.6 kB / 0.5157 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007047/0.5251, allocations: 4.045 MB / 0.5196 GB, free: 7.484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.5252, allocations: 4 kB / 0.5196 GB, free: 7.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.5268, allocations: 1.108 MB / 0.5207 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.5291, allocations: 385 kB / 0.5211 GB, free: 5.984 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1497/0.6788, allocations: 7.247 MB / 0.5281 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002963/0.6818, allocations: 2.783 MB / 0.5309 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003624/0.6855, allocations: 1.666 MB / 0.5325 GB, free: 148.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007116/0.6862, allocations: 211.4 kB / 0.5327 GB, free: 148.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6862, allocations: 0 / 0.5327 GB, free: 148.1 MB / 446.1 MB Notification: Performance of Templates: time 0.04704/0.7333, allocations: 26.1 MB / 0.5582 GB, free: 136.4 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 -s cvode -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