Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001798/0.001798, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001014, allocations: 101.9 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009548/0.000955, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2038, allocations: 50.46 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02405/0.2279, allocations: 34.75 MB / 441.8 MB, free: 8.934 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.2424, allocations: 7.956 MB / 449.8 MB, free: 0.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004224/0.2467, allocations: 143.6 kB / 449.9 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00411/0.2508, allocations: 2.049 MB / 452 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.2544, allocations: 1.514 MB / 453.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.2557, allocations: 0.6241 MB / 454.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004596/0.2603, allocations: 4.845 MB / 458.9 MB, free: 7.758 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.2633, allocations: 2.668 MB / 461.6 MB, free: 5.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001492/0.2648, allocations: 1.129 MB / 462.7 MB, free: 3.902 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.267, allocations: 1.881 MB / 464.6 MB, free: 2.016 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005308/0.2676, allocations: 192 kB / 464.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00195/0.2695, allocations: 1.108 MB / 465.9 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.2709, allocations: 1.531 MB / 467.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001608/0.2725, allocations: 1.817 MB / 469.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005388/0.2779, allocations: 5.673 MB / 474.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2779, allocations: 0 / 474.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2779, allocations: 0 / 474.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001535/0.2781, allocations: 0 / 474.9 MB, free: 7.664 MB / 346.7 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.007427/0.2855, allocations: 4.137 MB / 479.1 MB, free: 3.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2856, allocations: 8.031 kB / 479.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006425/0.292, allocations: 1.86 MB / 480.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003783/0.2958, allocations: 1.851 MB / 482.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.296, allocations: 201.1 kB / 483 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004519/0.2964, allocations: 271.9 kB / 483.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01584/0.3123, allocations: 9.981 MB / 493.2 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/0.3124, allocations: 35.69 kB / 493.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/0.3127, allocations: 135.9 kB / 493.4 MB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.3155, allocations: 1.852 MB / 495.2 MB, free: 2.543 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01627/0.3318, allocations: 8.532 MB / 0.492 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2043/0.5362, allocations: 36.84 MB / 0.5279 GB, free: 66.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008381/0.5446, allocations: 3.889 MB / 0.5317 GB, free: 65.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.5464, allocations: 1.816 MB / 0.5335 GB, free: 64.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009042/0.5555, allocations: 7.521 MB / 0.5409 GB, free: 59.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.5555, allocations: 46.94 kB / 0.5409 GB, free: 59.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.867e-06/0.5556, allocations: 4 kB / 0.5409 GB, free: 59.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04436/0.5999, allocations: 17.42 MB / 0.5579 GB, free: 41.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.6, allocations: 149.5 kB / 0.5581 GB, free: 41.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/0.6034, allocations: 3.473 MB / 0.5615 GB, free: 38.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.6035, allocations: 49.7 kB / 0.5615 GB, free: 38.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000978/0.6045, allocations: 2.736 MB / 0.5642 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003845/0.6049, allocations: 0.6448 MB / 0.5648 GB, free: 34.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/0.606, allocations: 1.115 MB / 0.5659 GB, free: 33.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.792e-05/0.606, allocations: 305.1 kB / 0.5662 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/0.6082, allocations: 1.951 MB / 0.5681 GB, free: 31.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.6115, allocations: 5.374 MB / 0.5733 GB, free: 24.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006088/0.6176, allocations: 7.923 MB / 0.5811 GB, free: 14.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.622e-05/0.6177, allocations: 36 kB / 0.5811 GB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01271/0.6304, allocations: 8.177 MB / 0.5891 GB, free: 6.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.993e-05/0.6305, allocations: 56 kB / 0.5892 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/0.6307, allocations: 125.5 kB / 0.5893 GB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005862/0.6365, allocations: 1.3 MB / 0.5905 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005924/0.6425, allocations: 1.259 MB / 0.5918 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.6554, allocations: 6.11 MB / 0.5977 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006693/0.6621, allocations: 299.6 kB / 0.598 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001073/0.6632, allocations: 336 kB / 0.5983 GB, free: 12.99 MB / 394.7 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.004268/0.6675, allocations: 1.816 MB / 0.6001 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008437/0.6684, allocations: 308 kB / 0.6004 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/0.6803, allocations: 3.356 MB / 0.6037 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-05/0.6804, allocations: 23.94 kB / 0.6037 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.6804, allocations: 7.938 kB / 0.6037 GB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.066e-05/0.6805, allocations: 7.969 kB / 0.6037 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02432/0.7048, allocations: 7.611 MB / 0.6112 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.854e-05/0.7049, allocations: 4.406 kB / 0.6112 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/0.7069, allocations: 239.7 kB / 0.6114 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006391/0.7133, allocations: 1.12 MB / 0.6125 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/0.7136, allocations: 27.98 kB / 0.6125 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01335/0.7269, allocations: 5.72 MB / 0.6181 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/0.727, allocations: 11.88 kB / 0.6181 GB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1148/0.8418, allocations: 39.83 MB / 0.657 GB, free: 408 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006491/0.8424, allocations: 357 kB / 0.6573 GB, free: 28 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003811/0.8428, allocations: 23.94 kB / 0.6574 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.8441, allocations: 95.95 kB / 0.6575 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.8444, allocations: 88.94 kB / 0.6575 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.8446, allocations: 47.98 kB / 0.6576 GB, free: 15.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002928/0.8475, allocations: 2.146 MB / 0.6597 GB, free: 13.63 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8475, allocations: 0 / 0.6597 GB, free: 13.63 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00454/0.8521, allocations: 1.232 MB / 0.6609 GB, free: 12.41 MB / 458.7 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.000375/0.8525, allocations: 179.7 kB / 0.6611 GB, free: 12.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007117/0.8596, allocations: 4.778 MB / 0.6657 GB, free: 7.469 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.8596, allocations: 4.312 kB / 0.6657 GB, free: 7.465 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.862, allocations: 1.538 MB / 0.6672 GB, free: 5.914 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/0.8643, allocations: 350.8 kB / 0.6676 GB, free: 5.574 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1951/1.059, allocations: 11.09 MB / 0.6784 GB, free: 155.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004929/1.064, allocations: 2.907 MB / 0.6812 GB, free: 154.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007299/1.072, allocations: 1.756 MB / 0.6829 GB, free: 154.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.073, allocations: 224.4 kB / 0.6832 GB, free: 154.6 MB / 458.7 MB Notification: Performance of SimCode: time 8.22e-07/1.073, allocations: 0 / 0.6832 GB, free: 154.6 MB / 458.7 MB Notification: Performance of Templates: time 0.1004/1.173, allocations: 44.57 MB / 0.7267 GB, free: 118.4 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches