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.001493/0.001493, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001851/0.001851, allocations: 188 kB / 18 MB, free: 5.219 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00093/0.0009301, allocations: 47.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2903, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01256/0.3029, allocations: 10.29 MB / 411 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008732/0.3117, allocations: 3.866 MB / 414.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002233/0.3139, allocations: 55.81 kB / 414.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004152/0.3182, allocations: 2.071 MB / 417 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004659/0.3229, allocations: 1.681 MB / 418.7 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.3246, allocations: 0.6862 MB / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00501/0.3297, allocations: 3.364 MB / 422.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004135/0.3338, allocations: 2.686 MB / 425.4 MB, free: 64 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002433/0.3363, allocations: 1.261 MB / 426.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002732/0.339, allocations: 1.756 MB / 428.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000831/0.3399, allocations: 271.9 kB / 428.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.3427, allocations: 1.123 MB / 429.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.3448, allocations: 1.574 MB / 431.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.3472, allocations: 1.872 MB / 433.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006932/0.3541, allocations: 5.936 MB / 439.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3542, allocations: 0 / 439.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3542, allocations: 0 / 439.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001586/0.3543, allocations: 0 / 439.2 MB, free: 2.23 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007845/0.3622, allocations: 4.125 MB / 443.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3622, allocations: 12.03 kB / 443.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006306/0.3686, allocations: 1.856 MB / 445.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003635/0.3722, allocations: 1.913 MB / 447.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.3724, allocations: 205.2 kB / 447.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006634/0.3731, allocations: 279.8 kB / 447.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/0.3909, allocations: 9.977 MB / 457.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-05/0.391, allocations: 35.69 kB / 457.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003669/0.3914, allocations: 131.9 kB / 457.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002913/0.3943, allocations: 1.856 MB / 459.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01681/0.4112, allocations: 8.54 MB / 468.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04651/0.4577, allocations: 36.69 MB / 0.493 GB, free: 14.76 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009905/0.4676, allocations: 3.887 MB / 0.4968 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/0.4706, allocations: 1.809 MB / 0.4986 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.4834, allocations: 7.527 MB / 0.5059 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/0.4835, allocations: 55.44 kB / 0.506 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 5.62e-06/0.4835, allocations: 0 / 0.506 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05121/0.5348, allocations: 17.41 MB / 0.523 GB, free: 15.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.5349, allocations: 153.5 kB / 0.5231 GB, free: 15.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005492/0.5404, allocations: 3.473 MB / 0.5265 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004139/0.5408, allocations: 53.7 kB / 0.5265 GB, free: 11.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002135/0.543, allocations: 2.732 MB / 0.5292 GB, free: 8.969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009941/0.544, allocations: 0.6441 MB / 0.5298 GB, free: 8.316 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/0.5458, allocations: 1.115 MB / 0.5309 GB, free: 7.191 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.741e-05/0.5459, allocations: 309.1 kB / 0.5312 GB, free: 6.887 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/0.5488, allocations: 1.947 MB / 0.5331 GB, free: 4.934 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2451/0.7939, allocations: 5.373 MB / 0.5384 GB, free: 127.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008585/0.8026, allocations: 7.932 MB / 0.5461 GB, free: 121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.8027, allocations: 34.56 kB / 0.5462 GB, free: 121 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01299/0.8157, allocations: 8.171 MB / 0.5541 GB, free: 118.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.98e-05/0.8158, allocations: 57.81 kB / 0.5542 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.706e-05/0.8159, allocations: 127.3 kB / 0.5543 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003541/0.8195, allocations: 1.303 MB / 0.5556 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003285/0.8228, allocations: 1.261 MB / 0.5568 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007189/0.83, allocations: 6.537 MB / 0.5632 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.8334, allocations: 297.5 kB / 0.5635 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003542/0.8338, allocations: 339.8 kB / 0.5638 GB, free: 111.6 MB / 462.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.001999/0.8358, allocations: 1.816 MB / 0.5656 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003579/0.8362, allocations: 300.1 kB / 0.5659 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00576/0.8419, allocations: 3.378 MB / 0.5692 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.162e-05/0.842, allocations: 16 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.842, allocations: 4 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.842, allocations: 7.984 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.8529, allocations: 7.567 MB / 0.5766 GB, free: 98.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.8529, allocations: 11.98 kB / 0.5766 GB, free: 98.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009898/0.8539, allocations: 236.5 kB / 0.5768 GB, free: 98.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003229/0.8571, allocations: 1.118 MB / 0.5779 GB, free: 97.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.8573, allocations: 28 kB / 0.5779 GB, free: 97.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006505/0.8638, allocations: 6.17 MB / 0.584 GB, free: 91.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8638, allocations: 4.062 kB / 0.584 GB, free: 91.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007891/0.8717, allocations: 5.715 MB / 0.5895 GB, free: 85.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/0.8725, allocations: 353 kB / 0.5899 GB, free: 85.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/0.873, allocations: 24 kB / 0.5899 GB, free: 85.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.8744, allocations: 91.88 kB / 0.59 GB, free: 85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.8747, allocations: 92.81 kB / 0.5901 GB, free: 84.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.8748, allocations: 47.98 kB / 0.5901 GB, free: 84.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003221/0.878, allocations: 2.142 MB / 0.5922 GB, free: 82.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.878, allocations: 0 / 0.5922 GB, free: 82.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004135/0.8822, allocations: 0.917 MB / 0.5931 GB, free: 81.82 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.0003601/0.8825, allocations: 182.1 kB / 0.5933 GB, free: 81.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005944/0.8885, allocations: 4.793 MB / 0.598 GB, free: 76.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.8885, allocations: 0 / 0.598 GB, free: 76.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.8903, allocations: 1.538 MB / 0.5995 GB, free: 75.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.8921, allocations: 356 kB / 0.5998 GB, free: 74.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.9038, allocations: 7.999 MB / 0.6076 GB, free: 66.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002031/0.9059, allocations: 2.855 MB / 0.6104 GB, free: 64.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002954/0.9088, allocations: 1.699 MB / 0.6121 GB, free: 62.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.9093, allocations: 219.4 kB / 0.6123 GB, free: 62.15 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.9093, allocations: 0 / 0.6123 GB, free: 62.15 MB / 462.1 MB Notification: Performance of Templates: time 0.04635/0.9557, allocations: 31.14 MB / 0.6427 GB, free: 31.22 MB / 462.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