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.001384/0.001385, allocations: 111.5 kB / 17.29 MB, free: 6.219 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.001393/0.001393, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.331/1.331, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 42.75 kB / 300.8 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1141, allocations: 49.44 MB / 350.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2464/0.3606, allocations: 34.74 MB / 385 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.3803, allocations: 7.816 MB / 392.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.3907, allocations: 146 kB / 392.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00433/0.3952, allocations: 1.983 MB / 394.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.4007, allocations: 1.529 MB / 396.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.4027, allocations: 0.6526 MB / 397.1 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005633/0.4083, allocations: 3.387 MB / 400.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00443/0.4128, allocations: 2.836 MB / 403.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002463/0.4153, allocations: 1.28 MB / 404.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003124/0.4184, allocations: 1.937 MB / 406.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009867/0.4194, allocations: 262.3 kB / 406.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.4224, allocations: 1.147 MB / 408 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002507/0.4249, allocations: 1.597 MB / 409.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003498/0.4284, allocations: 1.883 MB / 411.4 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006335/0.4348, allocations: 4.631 MB / 416.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4348, allocations: 0 / 416.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4349, allocations: 0 / 416.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002461/0.4351, allocations: 0 / 416.1 MB, free: 2.961 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.009873/0.445, allocations: 4.141 MB / 420.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4451, allocations: 8.031 kB / 420.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006375/0.4514, allocations: 1.856 MB / 422.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0038/0.4553, allocations: 1.875 MB / 423.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.4555, allocations: 209.1 kB / 424.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005918/0.4561, allocations: 271.9 kB / 424.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01857/0.4747, allocations: 9.973 MB / 434.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.4748, allocations: 39.67 kB / 434.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003811/0.4752, allocations: 135.9 kB / 434.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00303/0.4782, allocations: 1.848 MB / 436.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01782/0.4961, allocations: 8.54 MB / 444.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04575/0.5419, allocations: 36.86 MB / 481.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009548/0.5515, allocations: 3.878 MB / 485.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002595/0.5541, allocations: 1.807 MB / 487.5 MB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.5658, allocations: 7.52 MB / 495 MB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.5659, allocations: 63.42 kB / 495.1 MB, free: 1.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 4.749e-06/0.5659, allocations: 0 / 495.1 MB, free: 1.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05064/0.6165, allocations: 17.42 MB / 0.5005 GB, free: 60 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.6167, allocations: 145.5 kB / 0.5006 GB, free: 15.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.6214, allocations: 3.473 MB / 0.504 GB, free: 12.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003653/0.6218, allocations: 57.62 kB / 0.5041 GB, free: 12.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.6238, allocations: 2.728 MB / 0.5067 GB, free: 9.582 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008545/0.6247, allocations: 0.6441 MB / 0.5074 GB, free: 8.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00145/0.6262, allocations: 1.111 MB / 0.5084 GB, free: 7.809 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.6263, allocations: 313.1 kB / 0.5087 GB, free: 7.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002922/0.6292, allocations: 1.943 MB / 0.5106 GB, free: 5.551 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005518/0.6348, allocations: 5.382 MB / 0.5159 GB, free: 14.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008953/0.6437, allocations: 7.927 MB / 0.5236 GB, free: 4.828 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.296e-05/0.6439, allocations: 39.92 kB / 0.5237 GB, free: 4.789 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.1788/0.8227, allocations: 8.167 MB / 0.5316 GB, free: 145.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.8228, allocations: 59.98 kB / 0.5317 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/0.823, allocations: 120.9 kB / 0.5318 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/0.8272, allocations: 1.304 MB / 0.5331 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004181/0.8314, allocations: 1.259 MB / 0.5343 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009158/0.8406, allocations: 6.547 MB / 0.5407 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/0.8448, allocations: 298.5 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008895/0.8458, allocations: 341 kB / 0.5413 GB, free: 143.2 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.003067/0.8488, allocations: 1.815 MB / 0.5431 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005898/0.8494, allocations: 301.6 kB / 0.5434 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006565/0.856, allocations: 3.374 MB / 0.5467 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.315e-05/0.8561, allocations: 19.62 kB / 0.5467 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.8561, allocations: 3.938 kB / 0.5467 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.951e-05/0.8561, allocations: 11.61 kB / 0.5467 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.8685, allocations: 7.602 MB / 0.5541 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.8686, allocations: 7.688 kB / 0.5541 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.8697, allocations: 239.3 kB / 0.5544 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/0.8732, allocations: 1.126 MB / 0.5555 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/0.8734, allocations: 27.84 kB / 0.5555 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007003/0.8804, allocations: 6.174 MB / 0.5615 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.8805, allocations: 0 / 0.5615 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0082/0.8887, allocations: 5.704 MB / 0.5671 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008253/0.8895, allocations: 352.6 kB / 0.5674 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.8899, allocations: 24 kB / 0.5675 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.8911, allocations: 87.88 kB / 0.5675 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002881/0.8914, allocations: 88.88 kB / 0.5676 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.8916, allocations: 43.98 kB / 0.5677 GB, free: 129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003185/0.8948, allocations: 2.147 MB / 0.5698 GB, free: 126.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.8948, allocations: 0 / 0.5698 GB, free: 126.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005238/0.9, allocations: 0.918 MB / 0.5707 GB, free: 126 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.0004406/0.9005, allocations: 177.3 kB / 0.5708 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007999/0.9085, allocations: 5.545 MB / 0.5762 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.9085, allocations: 0 / 0.5762 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.9105, allocations: 1.541 MB / 0.5777 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.9127, allocations: 358.7 kB / 0.5781 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.9261, allocations: 10.18 MB / 0.588 GB, free: 108.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002155/0.9283, allocations: 2.855 MB / 0.5908 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008785/0.9292, allocations: 256.4 kB / 0.5911 GB, free: 105.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9292, allocations: 0 / 0.5911 GB, free: 105.1 MB / 446.1 MB Notification: Performance of Templates: time 0.07326/1.002, allocations: 65.72 MB / 0.6552 GB, free: 39.44 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/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