Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001123/0.001123, allocations: 109.1 kB / 17.93 MB, free: 5.535 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.001126/0.001126, allocations: 189.3 kB / 18.86 MB, free: 4.613 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.506/1.506, allocations: 205.1 MB / 224.7 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.001306/0.001306, allocations: 47.92 kB / 280.8 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09735, allocations: 46.64 MB / 327.4 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03186/0.1292, allocations: 34.77 MB / 362.2 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.1468, allocations: 7.814 MB / 370 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007236/0.1541, allocations: 139.7 kB / 370.2 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004238/0.1584, allocations: 1.994 MB / 372.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004288/0.1627, allocations: 1.538 MB / 373.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.1643, allocations: 0.6358 MB / 374.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004701/0.1691, allocations: 3.424 MB / 377.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1887/0.3578, allocations: 2.849 MB / 380.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.3607, allocations: 1.28 MB / 381.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003854/0.3646, allocations: 1.956 MB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001439/0.366, allocations: 262.9 kB / 384.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/0.3698, allocations: 1.125 MB / 385.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003238/0.373, allocations: 1.605 MB / 386.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00439/0.3775, allocations: 1.886 MB / 388.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007135/0.3846, allocations: 4.641 MB / 393.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3847, allocations: 1.625 kB / 393.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3847, allocations: 0 / 393.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002712/0.385, allocations: 0 / 393.4 MB, free: 9.637 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01386/0.3988, allocations: 4.138 MB / 397.5 MB, free: 7.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3989, allocations: 11.41 kB / 397.5 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007244/0.4061, allocations: 1.854 MB / 399.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005146/0.4113, allocations: 1.919 MB / 401.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.4116, allocations: 213.1 kB / 401.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.4129, allocations: 269.7 kB / 401.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.4322, allocations: 9.983 MB / 411.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.4323, allocations: 43.25 kB / 411.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005127/0.4328, allocations: 131 kB / 411.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.4357, allocations: 1.857 MB / 413.8 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/0.4544, allocations: 8.527 MB / 422.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0513/0.5058, allocations: 36.86 MB / 459.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/0.5162, allocations: 3.875 MB / 463 MB, free: 20 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002902/0.5192, allocations: 1.814 MB / 464.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01394/0.5332, allocations: 7.527 MB / 472.4 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/0.5333, allocations: 53.97 kB / 472.4 MB, free: 6.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.891e-06/0.5333, allocations: 2.156 kB / 472.4 MB, free: 6.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05727/0.5905, allocations: 17.44 MB / 489.9 MB, free: 4.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/0.5907, allocations: 145.5 kB / 490 MB, free: 4.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007129/0.5978, allocations: 3.489 MB / 493.5 MB, free: 1.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004833/0.5984, allocations: 45.7 kB / 493.5 MB, free: 1.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002081/0.6004, allocations: 2.736 MB / 496.3 MB, free: 14.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009249/0.6014, allocations: 0.6454 MB / 496.9 MB, free: 13.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.6032, allocations: 1.122 MB / 498 MB, free: 12.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.6033, allocations: 301.1 kB / 498.3 MB, free: 12.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003102/0.6065, allocations: 1.955 MB / 0.4886 GB, free: 10.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005428/0.6119, allocations: 5.372 MB / 0.4938 GB, free: 3.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009486/0.6214, allocations: 7.922 MB / 0.5015 GB, free: 10.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.6216, allocations: 36 kB / 0.5016 GB, free: 10.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01821/0.6398, allocations: 8.177 MB / 0.5096 GB, free: 2.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001552/0.64, allocations: 59.84 kB / 0.5096 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/0.6402, allocations: 120 kB / 0.5097 GB, free: 2.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004369/0.6446, allocations: 1.301 MB / 0.511 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/0.6493, allocations: 1.26 MB / 0.5122 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/0.659, allocations: 6.559 MB / 0.5186 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/0.664, allocations: 299.6 kB / 0.5189 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/0.6654, allocations: 346.7 kB / 0.5193 GB, free: 8.879 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.004916/0.6703, allocations: 1.815 MB / 0.521 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009078/0.6712, allocations: 300.1 kB / 0.5213 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008253/0.6795, allocations: 3.376 MB / 0.5246 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.311e-05/0.6796, allocations: 16 kB / 0.5246 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-05/0.6796, allocations: 8 kB / 0.5246 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.798e-05/0.6797, allocations: 7.969 kB / 0.5246 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01866/0.6983, allocations: 7.62 MB / 0.5321 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.6984, allocations: 3.938 kB / 0.5321 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.6998, allocations: 235.7 kB / 0.5323 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00396/0.7037, allocations: 1.12 MB / 0.5334 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003743/0.7041, allocations: 28 kB / 0.5334 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008952/0.7131, allocations: 6.172 MB / 0.5395 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.7131, allocations: 0 / 0.5395 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2045/0.9176, allocations: 5.701 MB / 0.545 GB, free: 138.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001935/0.9196, allocations: 0.5773 MB / 0.5456 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008096/0.9204, allocations: 23.94 kB / 0.5456 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/0.9221, allocations: 88.98 kB / 0.5457 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003291/0.9225, allocations: 94.61 kB / 0.5458 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.9226, allocations: 43.56 kB / 0.5458 GB, free: 138 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004595/0.9272, allocations: 2.157 MB / 0.5479 GB, free: 137.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.9272, allocations: 0 / 0.5479 GB, free: 137.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006853/0.9341, allocations: 0.9138 MB / 0.5488 GB, free: 137.9 MB / 462.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.000621/0.9348, allocations: 164.8 kB / 0.549 GB, free: 137.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01252/0.9473, allocations: 5.547 MB / 0.5544 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.9473, allocations: 0 / 0.5544 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002861/0.9502, allocations: 1.535 MB / 0.5559 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.9532, allocations: 352 kB / 0.5562 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/0.9705, allocations: 10.2 MB / 0.5662 GB, free: 133.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003764/0.9743, allocations: 2.863 MB / 0.569 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.9754, allocations: 259.5 kB / 0.5692 GB, free: 132.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.91e-07/0.9754, allocations: 4 kB / 0.5692 GB, free: 132.2 MB / 462.1 MB Notification: Performance of Templates: time 0.0768/1.052, allocations: 65.77 MB / 0.6335 GB, free: 74.79 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches