Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 102.6 kB / 16.92 MB, free: 6.184 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.001661/0.001662, allocations: 191.3 kB / 17.85 MB, free: 5.32 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.284/1.284, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009971/0.0009972, allocations: 49.02 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08648, allocations: 49.44 MB / 350.1 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01189/0.09841, allocations: 10.3 MB / 360.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007532/0.106, allocations: 3.862 MB / 364.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.1073, allocations: 63.75 kB / 364.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003817/0.1112, allocations: 2.071 MB / 366.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003608/0.1148, allocations: 1.65 MB / 368 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1163, allocations: 0.6862 MB / 368.7 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1496/0.266, allocations: 3.352 MB / 372 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002955/0.269, allocations: 2.685 MB / 374.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.2708, allocations: 1.257 MB / 376 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002231/0.2731, allocations: 1.76 MB / 377.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006182/0.2737, allocations: 262.5 kB / 378 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.2757, allocations: 1.117 MB / 379.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001461/0.2771, allocations: 1.571 MB / 380.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.2788, allocations: 1.866 MB / 382.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005104/0.2839, allocations: 5.731 MB / 388.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2839, allocations: 3.281 kB / 388.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.284, allocations: 0 / 388.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001295/0.2841, allocations: 0 / 388.3 MB, free: 6.148 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007471/0.2916, allocations: 4.125 MB / 392.4 MB, free: 3.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2916, allocations: 8.25 kB / 392.4 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006315/0.2979, allocations: 1.851 MB / 394.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002909/0.3009, allocations: 1.879 MB / 396.1 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.301, allocations: 206.4 kB / 396.3 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000446/0.3015, allocations: 283 kB / 396.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/0.3176, allocations: 9.978 MB / 406.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-05/0.3177, allocations: 33.53 kB / 406.6 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003486/0.3181, allocations: 138.5 kB / 406.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.3211, allocations: 1.853 MB / 408.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01753/0.3386, allocations: 8.534 MB / 417.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0396/0.3783, allocations: 36.84 MB / 454 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009294/0.3876, allocations: 3.884 MB / 457.9 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002166/0.3898, allocations: 1.806 MB / 459.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009669/0.3995, allocations: 7.517 MB / 467.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.3995, allocations: 58.59 kB / 467.3 MB, free: 10.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.497e-06/0.3995, allocations: 4 kB / 467.3 MB, free: 10.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05366/0.4532, allocations: 17.42 MB / 484.7 MB, free: 9.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/0.4533, allocations: 149 kB / 484.8 MB, free: 9.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004757/0.4581, allocations: 3.473 MB / 488.3 MB, free: 5.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.4582, allocations: 52.59 kB / 488.4 MB, free: 5.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001728/0.46, allocations: 2.735 MB / 491.1 MB, free: 3.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005773/0.4606, allocations: 0.6407 MB / 491.7 MB, free: 2.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/0.462, allocations: 1.126 MB / 492.9 MB, free: 1.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.445e-05/0.4621, allocations: 301.1 kB / 493.2 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002867/0.465, allocations: 1.947 MB / 495.1 MB, free: 15.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004928/0.4699, allocations: 5.377 MB / 0.4887 GB, free: 7.988 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008292/0.4782, allocations: 7.927 MB / 0.4965 GB, free: 14.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.048e-05/0.4783, allocations: 36 kB / 0.4965 GB, free: 14.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01421/0.4925, allocations: 8.172 MB / 0.5045 GB, free: 6.195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-05/0.4927, allocations: 60.25 kB / 0.5046 GB, free: 6.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.4928, allocations: 120 kB / 0.5047 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004132/0.497, allocations: 1.303 MB / 0.5059 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00397/0.501, allocations: 1.271 MB / 0.5072 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009054/0.51, allocations: 6.541 MB / 0.5136 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.5141, allocations: 303.5 kB / 0.5139 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000928/0.515, allocations: 343.9 kB / 0.5142 GB, free: 12.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003321/0.5183, allocations: 1.807 MB / 0.516 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005712/0.5189, allocations: 304.1 kB / 0.5162 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007067/0.526, allocations: 3.367 MB / 0.5195 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.526, allocations: 20 kB / 0.5196 GB, free: 6.609 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.526, allocations: 4 kB / 0.5196 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.5261, allocations: 11.97 kB / 0.5196 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1664/0.6925, allocations: 7.599 MB / 0.527 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.6926, allocations: 0.7188 kB / 0.527 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.6939, allocations: 237.9 kB / 0.5272 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003869/0.6978, allocations: 1.129 MB / 0.5283 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.698, allocations: 27.72 kB / 0.5283 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/0.706, allocations: 6.165 MB / 0.5344 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.706, allocations: 1.062 kB / 0.5344 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.7163, allocations: 5.71 MB / 0.5399 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006788/0.717, allocations: 350.5 kB / 0.5403 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.7174, allocations: 28.45 kB / 0.5403 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.7186, allocations: 88.73 kB / 0.5404 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.7189, allocations: 86.22 kB / 0.5405 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.719, allocations: 48.98 kB / 0.5405 GB, free: 143 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002928/0.7219, allocations: 2.147 MB / 0.5426 GB, free: 142.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7219, allocations: 4.719 kB / 0.5426 GB, free: 142.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003905/0.7258, allocations: 0.9171 MB / 0.5435 GB, free: 142.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000332/0.7262, allocations: 172.5 kB / 0.5437 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006952/0.7331, allocations: 5.544 MB / 0.5491 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.7332, allocations: 0 / 0.5491 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.735, allocations: 1.541 MB / 0.5506 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001773/0.7368, allocations: 362 kB / 0.5509 GB, free: 139.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.7476, allocations: 8.089 MB / 0.5588 GB, free: 134.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/0.7499, allocations: 2.857 MB / 0.5616 GB, free: 132.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00354/0.7535, allocations: 1.702 MB / 0.5633 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.754, allocations: 219 kB / 0.5635 GB, free: 131.3 MB / 446.1 MB Notification: Performance of SimCode: time 6.92e-07/0.754, allocations: 4 kB / 0.5635 GB, free: 131.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04825/0.8023, allocations: 34.03 MB / 0.5967 GB, free: 97.59 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches