Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001236/0.001236, allocations: 113.3 kB / 17.28 MB, free: 6.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.001195/0.001195, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 55.91 kB / 280.2 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1008, allocations: 46.64 MB / 326.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.03138/0.1322, allocations: 34.69 MB / 361.5 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.1484, allocations: 7.797 MB / 369.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005318/0.1538, allocations: 147.6 kB / 369.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00354/0.1573, allocations: 1.866 MB / 371.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00364/0.161, allocations: 1.542 MB / 372.8 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1622, allocations: 0.5695 MB / 373.4 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003769/0.166, allocations: 3.373 MB / 376.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1775/0.3435, allocations: 2.737 MB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003026/0.3466, allocations: 1.261 MB / 380.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0046/0.3512, allocations: 1.876 MB / 382.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.3529, allocations: 253.3 kB / 382.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004053/0.3569, allocations: 1.036 MB / 383.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003768/0.3607, allocations: 1.597 MB / 385.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005326/0.3661, allocations: 1.851 MB / 387.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007509/0.3736, allocations: 5.669 MB / 393 MB, free: 9.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.3737, allocations: 0 / 393 MB, free: 9.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.3737, allocations: 1.094 kB / 393 MB, free: 9.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002103/0.3739, allocations: 0 / 393 MB, free: 9.113 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.008797/0.3827, allocations: 4.023 MB / 397.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3828, allocations: 13.48 kB / 397.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005814/0.3886, allocations: 1.772 MB / 398.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.3922, allocations: 1.959 MB / 400.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.3923, allocations: 192.6 kB / 401 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000443/0.3927, allocations: 263.3 kB / 401.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.4048, allocations: 8.434 MB / 409.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-05/0.4049, allocations: 40.59 kB / 409.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/0.4053, allocations: 123.7 kB / 409.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00216/0.4075, allocations: 1.697 MB / 411.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/0.4196, allocations: 7.094 MB / 418.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04108/0.4607, allocations: 34.16 MB / 452.8 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007115/0.4678, allocations: 3.273 MB / 456.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/0.4697, allocations: 1.455 MB / 457.5 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00661/0.4763, allocations: 4.38 MB / 461.9 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.4764, allocations: 46.22 kB / 462 MB, free: 272 kB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 4.99e-06/0.4764, allocations: 0 / 462 MB, free: 272 kB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.02903/0.5055, allocations: 11.53 MB / 473.5 MB, free: 4.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.5056, allocations: 141.2 kB / 473.6 MB, free: 4.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005087/0.5107, allocations: 3.729 MB / 477.4 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002242/0.5109, allocations: 41.7 kB / 477.4 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.5127, allocations: 2.749 MB / 480.2 MB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005716/0.5133, allocations: 0.5212 MB / 480.7 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/0.5147, allocations: 1.079 MB / 481.8 MB, free: 12.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5148, allocations: 313.1 kB / 482.1 MB, free: 12.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/0.5171, allocations: 1.705 MB / 483.8 MB, free: 10.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004774/0.5219, allocations: 5.124 MB / 488.9 MB, free: 3.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007879/0.5298, allocations: 7.42 MB / 496.3 MB, free: 10.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.986e-05/0.5299, allocations: 38.12 kB / 496.3 MB, free: 10.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01037/0.5402, allocations: 6.715 MB / 0.4913 GB, free: 4.852 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.808e-05/0.5403, allocations: 63.94 kB / 0.4913 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.5404, allocations: 127.8 kB / 0.4915 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005871/0.541, allocations: 321.4 kB / 0.4918 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/0.5443, allocations: 1.245 MB / 0.493 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.5468, allocations: 2.499 MB / 0.4954 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00359/0.5504, allocations: 283.6 kB / 0.4957 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004611/0.5508, allocations: 330.6 kB / 0.496 GB, free: 44 kB / 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.003603/0.5544, allocations: 1.792 MB / 0.4978 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008784/0.5553, allocations: 312 kB / 0.498 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004927/0.5603, allocations: 2.362 MB / 0.5004 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.912e-05/0.5603, allocations: 27.45 kB / 0.5004 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5603, allocations: 4 kB / 0.5004 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.5604, allocations: 7.969 kB / 0.5004 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.572, allocations: 5.913 MB / 0.5062 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.572, allocations: 4.062 kB / 0.5062 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.5729, allocations: 183.6 kB / 0.5063 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002146/0.575, allocations: 0.7156 MB / 0.507 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.5751, allocations: 19.98 kB / 0.5071 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005745/0.5809, allocations: 4.817 MB / 0.5118 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5809, allocations: 0 / 0.5118 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006838/0.5878, allocations: 4.317 MB / 0.516 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/0.5897, allocations: 0.5282 MB / 0.5165 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.5901, allocations: 22.58 kB / 0.5165 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.5912, allocations: 67.84 kB / 0.5166 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.5915, allocations: 68.62 kB / 0.5167 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.5916, allocations: 36 kB / 0.5167 GB, free: 10.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004296/0.5959, allocations: 2.331 MB / 0.519 GB, free: 8.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.824e-06/0.5959, allocations: 0 / 0.519 GB, free: 8.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005142/0.6011, allocations: 0.8233 MB / 0.5198 GB, free: 7.59 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.0004218/0.6015, allocations: 159 kB / 0.5199 GB, free: 7.422 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007364/0.6089, allocations: 4.416 MB / 0.5242 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.6089, allocations: 0 / 0.5242 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.6105, allocations: 1.108 MB / 0.5253 GB, free: 1.906 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/0.6134, allocations: 395.4 kB / 0.5257 GB, free: 1.523 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.6282, allocations: 8.959 MB / 0.5344 GB, free: 8.527 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003483/0.6317, allocations: 2.785 MB / 0.5372 GB, free: 5.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004421/0.6362, allocations: 1.66 MB / 0.5388 GB, free: 4.051 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000793/0.637, allocations: 211.4 kB / 0.539 GB, free: 3.844 MB / 462.1 MB Notification: Performance of SimCode: time 1.824e-06/0.637, allocations: 0 / 0.539 GB, free: 3.844 MB / 462.1 MB Notification: Performance of Templates: time 0.2732/0.9102, allocations: 30.99 MB / 0.5692 GB, free: 168.1 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches