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.0007332/0.0007333, allocations: 90.72 kB / 16.65 MB, free: 6.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.0008269/0.000827, allocations: 177 kB / 17.56 MB, free: 6.18 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.335/1.335, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002715, allocations: 19.92 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 50.41 MB / 351.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2222/0.3292, allocations: 33.74 MB / 385.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01988/0.3491, allocations: 7.845 MB / 393.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008652/0.3578, allocations: 149.1 kB / 393.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.3597, allocations: 376.4 kB / 393.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005854/0.3656, allocations: 1.547 MB / 395.5 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.3673, allocations: 0.6327 MB / 396.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00744/0.3747, allocations: 4.758 MB / 400.9 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005582/0.3803, allocations: 3.73 MB / 404.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002297/0.3827, allocations: 0.9572 MB / 405.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.3852, allocations: 1.677 MB / 407.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.3855, allocations: 124.3 kB / 407.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3875, allocations: 1.049 MB / 408.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.3886, allocations: 1.441 MB / 409.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.3901, allocations: 1.717 MB / 411.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005343/0.3954, allocations: 5.529 MB / 417.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3955, allocations: 4 kB / 417.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3955, allocations: 0 / 417.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.3956, allocations: 0 / 417.1 MB, free: 2.973 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.00599/0.4016, allocations: 3.382 MB / 420.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.4016, allocations: 8.031 kB / 420.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006803/0.4085, allocations: 1.907 MB / 422.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.412, allocations: 1.871 MB / 424.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4122, allocations: 213.1 kB / 424.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000537/0.4128, allocations: 267.8 kB / 424.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01794/0.4307, allocations: 9.997 MB / 434.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001268/0.4309, allocations: 35.69 kB / 434.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/0.4313, allocations: 131.9 kB / 434.9 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.4345, allocations: 1.852 MB / 436.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.4532, allocations: 8.556 MB / 445.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04368/0.4969, allocations: 36.85 MB / 482.1 MB, free: 68 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009965/0.5069, allocations: 3.882 MB / 486 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0026/0.5095, allocations: 1.814 MB / 487.8 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.52, allocations: 7.523 MB / 495.4 MB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.5201, allocations: 59.42 kB / 495.4 MB, free: 2.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 4.308e-06/0.5201, allocations: 0 / 495.4 MB, free: 2.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05366/0.5738, allocations: 17.37 MB / 0.5008 GB, free: 0.793 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.574, allocations: 149.5 kB / 0.5009 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004752/0.5787, allocations: 3.481 MB / 0.5043 GB, free: 13.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003126/0.5791, allocations: 45.7 kB / 0.5044 GB, free: 13.08 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.5809, allocations: 2.728 MB / 0.507 GB, free: 10.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006994/0.5816, allocations: 0.6557 MB / 0.5077 GB, free: 9.652 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005405/0.5822, allocations: 478.3 kB / 0.5081 GB, free: 9.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.368e-05/0.5822, allocations: 305.1 kB / 0.5084 GB, free: 8.879 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.5851, allocations: 1.951 MB / 0.5103 GB, free: 6.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004969/0.5901, allocations: 5.374 MB / 0.5156 GB, free: 15.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009282/0.5994, allocations: 7.921 MB / 0.5233 GB, free: 6.211 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.5996, allocations: 47.88 kB / 0.5233 GB, free: 6.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.2092/0.8088, allocations: 8.161 MB / 0.5313 GB, free: 144.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.671e-05/0.8089, allocations: 63.42 kB / 0.5314 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/0.8091, allocations: 121.1 kB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004593/0.8137, allocations: 1.297 MB / 0.5328 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004531/0.8182, allocations: 1.263 MB / 0.534 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009089/0.8273, allocations: 6.098 MB / 0.54 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003951/0.8313, allocations: 298.1 kB / 0.5402 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005513/0.8319, allocations: 344.2 kB / 0.5406 GB, free: 143.1 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.002865/0.8347, allocations: 1.807 MB / 0.5423 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005364/0.8353, allocations: 304 kB / 0.5426 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007048/0.8423, allocations: 3.369 MB / 0.5459 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.315e-05/0.8424, allocations: 23.19 kB / 0.5459 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.8424, allocations: 4.125 kB / 0.5459 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.8424, allocations: 9.953 kB / 0.5459 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.8549, allocations: 7.612 MB / 0.5534 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.855, allocations: 0 / 0.5534 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.8561, allocations: 241 kB / 0.5536 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003584/0.8597, allocations: 1.122 MB / 0.5547 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/0.8599, allocations: 32.75 kB / 0.5547 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007491/0.8674, allocations: 5.709 MB / 0.5603 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.8674, allocations: 3.969 kB / 0.5603 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008842/0.8763, allocations: 5.704 MB / 0.5659 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008534/0.8771, allocations: 360.5 kB / 0.5662 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002986/0.8775, allocations: 25.17 kB / 0.5663 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.8787, allocations: 95.81 kB / 0.5663 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.879, allocations: 88.81 kB / 0.5664 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.8791, allocations: 48.62 kB / 0.5665 GB, free: 130.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002468/0.8816, allocations: 2.15 MB / 0.5686 GB, free: 128.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8816, allocations: 0 / 0.5686 GB, free: 128.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003785/0.8854, allocations: 0.9163 MB / 0.5695 GB, free: 127.6 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.000352/0.8858, allocations: 177.3 kB / 0.5696 GB, free: 127.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006001/0.8918, allocations: 4.773 MB / 0.5743 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.8918, allocations: 4 kB / 0.5743 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.8937, allocations: 1.541 MB / 0.5758 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002276/0.896, allocations: 341.9 kB / 0.5761 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.908, allocations: 9.896 MB / 0.5858 GB, free: 110.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.9104, allocations: 2.857 MB / 0.5886 GB, free: 108 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003769/0.9142, allocations: 1.723 MB / 0.5903 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/0.9147, allocations: 215.4 kB / 0.5905 GB, free: 106.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.783e-06/0.9147, allocations: 0 / 0.5905 GB, free: 106.1 MB / 446.1 MB Notification: Performance of Templates: time 0.04765/0.9624, allocations: 32.24 MB / 0.622 GB, free: 74.01 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