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.001278/0.001278, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001331/0.001331, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.342/1.342, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 39.88 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1166, allocations: 49.45 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2394/0.356, allocations: 34.74 MB / 384.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.3777, allocations: 7.908 MB / 392.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01081/0.3885, allocations: 146.1 kB / 392.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005123/0.3938, allocations: 2.051 MB / 394.9 MB, free: 2.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005686/0.3995, allocations: 1.531 MB / 396.4 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.4017, allocations: 0.6346 MB / 397.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008159/0.4099, allocations: 4.761 MB / 401.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005331/0.4153, allocations: 2.666 MB / 404.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.4183, allocations: 1.125 MB / 405.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003726/0.4221, allocations: 1.883 MB / 407.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001387/0.4235, allocations: 199.9 kB / 407.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003444/0.427, allocations: 1.123 MB / 408.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.4291, allocations: 1.535 MB / 410.4 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002305/0.4315, allocations: 1.821 MB / 412.2 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004857/0.4363, allocations: 4.58 MB / 416.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4363, allocations: 0 / 416.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4364, allocations: 0 / 416.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001252/0.4365, allocations: 4 kB / 416.8 MB, free: 2.051 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.008152/0.4447, allocations: 4.129 MB / 420.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/0.4447, allocations: 8.031 kB / 420.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006306/0.451, allocations: 1.852 MB / 422.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003892/0.455, allocations: 1.878 MB / 424.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.4552, allocations: 213.1 kB / 424.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007197/0.4559, allocations: 263.9 kB / 425.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02121/0.4771, allocations: 9.977 MB / 435.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002006/0.4774, allocations: 39.69 kB / 435.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00104/0.4784, allocations: 135.9 kB / 435.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003516/0.4819, allocations: 1.848 MB / 437.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.5019, allocations: 8.538 MB / 445.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04955/0.5515, allocations: 36.85 MB / 482.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.5618, allocations: 3.872 MB / 486.4 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002921/0.5648, allocations: 1.817 MB / 488.2 MB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.5779, allocations: 7.532 MB / 495.7 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.247e-05/0.578, allocations: 55.42 kB / 495.8 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 5.561e-06/0.578, allocations: 0 / 495.8 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05617/0.6342, allocations: 17.42 MB / 0.5012 GB, free: 15.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.466e-05/0.6344, allocations: 145.5 kB / 0.5013 GB, free: 14.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006008/0.6404, allocations: 3.473 MB / 0.5047 GB, free: 11.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000364/0.6408, allocations: 49.7 kB / 0.5047 GB, free: 11.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002162/0.643, allocations: 2.728 MB / 0.5074 GB, free: 8.691 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009493/0.6439, allocations: 0.648 MB / 0.508 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002346/0.6463, allocations: 1.115 MB / 0.5091 GB, free: 6.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.6464, allocations: 301.1 kB / 0.5094 GB, free: 6.613 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00348/0.6499, allocations: 1.951 MB / 0.5113 GB, free: 4.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005733/0.6557, allocations: 5.374 MB / 0.5166 GB, free: 13.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009813/0.6655, allocations: 7.934 MB / 0.5243 GB, free: 3.934 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.6656, allocations: 35.94 kB / 0.5243 GB, free: 3.898 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.2036/0.8692, allocations: 8.165 MB / 0.5323 GB, free: 145.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.8695, allocations: 60.62 kB / 0.5324 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003365/0.8698, allocations: 120.5 kB / 0.5325 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00465/0.8745, allocations: 1.303 MB / 0.5338 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004775/0.8793, allocations: 1.262 MB / 0.535 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/0.8896, allocations: 6.098 MB / 0.541 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/0.8942, allocations: 294.8 kB / 0.5412 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/0.8955, allocations: 346.9 kB / 0.5416 GB, free: 143.5 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.004019/0.8996, allocations: 1.812 MB / 0.5433 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000794/0.9004, allocations: 304.4 kB / 0.5436 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007211/0.9076, allocations: 3.37 MB / 0.5469 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.343e-05/0.9077, allocations: 15.62 kB / 0.5469 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.349e-05/0.9077, allocations: 12.75 kB / 0.5469 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.243e-05/0.9077, allocations: 8.141 kB / 0.5469 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/0.9223, allocations: 7.607 MB / 0.5544 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/0.9224, allocations: 3.906 kB / 0.5544 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.9235, allocations: 240.9 kB / 0.5546 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/0.927, allocations: 1.116 MB / 0.5557 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002505/0.9273, allocations: 27.73 kB / 0.5557 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006832/0.9341, allocations: 5.723 MB / 0.5613 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.9342, allocations: 0 / 0.5613 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/0.9424, allocations: 5.707 MB / 0.5669 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008018/0.9432, allocations: 353 kB / 0.5672 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006375/0.9439, allocations: 33.62 kB / 0.5673 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.9454, allocations: 95.48 kB / 0.5674 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.9457, allocations: 88.88 kB / 0.5674 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.9458, allocations: 40 kB / 0.5675 GB, free: 129.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003207/0.9491, allocations: 2.15 MB / 0.5696 GB, free: 126.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9491, allocations: 0 / 0.5696 GB, free: 126.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004805/0.9539, allocations: 0.9153 MB / 0.5705 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.0005061/0.9544, allocations: 160.4 kB / 0.5706 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006814/0.9612, allocations: 4.783 MB / 0.5753 GB, free: 121.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.9613, allocations: 0.5625 kB / 0.5753 GB, free: 121.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.9635, allocations: 1.544 MB / 0.5768 GB, free: 119.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.9664, allocations: 338.6 kB / 0.5771 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.9819, allocations: 10.18 MB / 0.5871 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003293/0.9852, allocations: 2.855 MB / 0.5899 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009757/0.9862, allocations: 255.4 kB / 0.5901 GB, free: 105.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.485e-06/0.9862, allocations: 0 / 0.5901 GB, free: 105.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07619/1.062, allocations: 65.73 MB / 0.6543 GB, free: 40.27 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