Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001144/0.001144, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001271/0.001271, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 51.92 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.0928, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01073/0.1036, allocations: 10.32 MB / 339 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007823/0.1114, allocations: 3.871 MB / 342.9 MB, free: 5.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.1129, allocations: 51.88 kB / 343 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003912/0.1168, allocations: 2.075 MB / 345 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003979/0.1208, allocations: 1.646 MB / 346.7 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001772/0.1226, allocations: 0.6901 MB / 347.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005317/0.1279, allocations: 3.389 MB / 350.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004244/0.1322, allocations: 2.692 MB / 353.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.1345, allocations: 1.277 MB / 354.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.1371, allocations: 1.756 MB / 356.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008191/0.1379, allocations: 264 kB / 356.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002427/0.1404, allocations: 1.116 MB / 357.9 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.1425, allocations: 1.574 MB / 359.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003103/0.1457, allocations: 1.868 MB / 361.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006798/0.1525, allocations: 5.94 MB / 367.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1525, allocations: 0 / 367.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1525, allocations: 0 / 367.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001605/0.1527, allocations: 0 / 367.2 MB, free: 13.02 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.008676/0.1614, allocations: 4.133 MB / 371.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1614, allocations: 15.97 kB / 371.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006303/0.1677, allocations: 1.848 MB / 373.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/0.1719, allocations: 1.972 MB / 375.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.1721, allocations: 209.2 kB / 375.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005787/0.1727, allocations: 267.9 kB / 375.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1749/0.3476, allocations: 9.975 MB / 385.7 MB, free: 47.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/0.3478, allocations: 40.61 kB / 385.7 MB, free: 47.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004525/0.3483, allocations: 129.5 kB / 385.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003286/0.3516, allocations: 1.86 MB / 387.7 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/0.3686, allocations: 8.527 MB / 396.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04003/0.4086, allocations: 36.71 MB / 432.9 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008673/0.4174, allocations: 3.872 MB / 436.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.4195, allocations: 1.814 MB / 438.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.4323, allocations: 7.529 MB / 446.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.02e-05/0.4325, allocations: 47.56 kB / 446.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 7.604e-06/0.4325, allocations: 0 / 446.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.05359/0.4861, allocations: 17.44 MB / 463.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.4862, allocations: 153.4 kB / 463.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006719/0.493, allocations: 3.481 MB / 467.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003463/0.4933, allocations: 49.69 kB / 467.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002711/0.496, allocations: 2.74 MB / 470 MB, free: 2.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.4971, allocations: 0.6402 MB / 470.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002836/0.4999, allocations: 1.115 MB / 471.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5001, allocations: 305.1 kB / 472.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/0.5037, allocations: 1.951 MB / 474 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005701/0.5094, allocations: 5.37 MB / 479.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009359/0.5188, allocations: 7.937 MB / 487.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001391/0.519, allocations: 36 kB / 487.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0171/0.5361, allocations: 8.17 MB / 495.6 MB, free: 5.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/0.5363, allocations: 59.94 kB / 495.6 MB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/0.5365, allocations: 124 kB / 495.7 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004285/0.5408, allocations: 1.3 MB / 497 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004372/0.5452, allocations: 1.267 MB / 498.3 MB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009436/0.5547, allocations: 6.542 MB / 0.493 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/0.5593, allocations: 299.6 kB / 0.4933 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/0.5603, allocations: 348 kB / 0.4936 GB, free: 11.64 MB / 398.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.004376/0.5647, allocations: 1.803 MB / 0.4954 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007999/0.5656, allocations: 304.9 kB / 0.4957 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007695/0.5733, allocations: 3.368 MB / 0.499 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-05/0.5733, allocations: 19.94 kB / 0.499 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/0.5734, allocations: 8 kB / 0.499 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/0.5734, allocations: 7.969 kB / 0.499 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/0.5901, allocations: 7.589 MB / 0.5064 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.5902, allocations: 4 kB / 0.5064 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.5914, allocations: 241.2 kB / 0.5066 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003809/0.5952, allocations: 1.124 MB / 0.5077 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/0.5955, allocations: 24 kB / 0.5078 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008931/0.6044, allocations: 6.161 MB / 0.5138 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.6045, allocations: 8.094 kB / 0.5138 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.615, allocations: 5.703 MB / 0.5194 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/0.617, allocations: 0.575 MB / 0.5199 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007373/0.6178, allocations: 24 kB / 0.5199 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/0.6195, allocations: 91.88 kB / 0.52 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003141/0.6198, allocations: 88.81 kB / 0.5201 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.62, allocations: 51.98 kB / 0.5202 GB, free: 148 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00414/0.6241, allocations: 2.154 MB / 0.5223 GB, free: 14 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6241, allocations: 0 / 0.5223 GB, free: 14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004617/0.6287, allocations: 0.9192 MB / 0.5232 GB, free: 13.09 MB / 430.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.0005124/0.6293, allocations: 176.2 kB / 0.5233 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007836/0.6371, allocations: 4.79 MB / 0.528 GB, free: 8.137 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6372, allocations: 0 / 0.528 GB, free: 8.137 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.6397, allocations: 1.535 MB / 0.5295 GB, free: 6.586 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.6426, allocations: 364.2 kB / 0.5299 GB, free: 6.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.199/0.8416, allocations: 8 MB / 0.5377 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003601/0.8452, allocations: 2.855 MB / 0.5405 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004292/0.8495, allocations: 1.701 MB / 0.5421 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007135/0.8503, allocations: 224.1 kB / 0.5423 GB, free: 144.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8503, allocations: 1.406 kB / 0.5423 GB, free: 144.3 MB / 430.1 MB Notification: Performance of Templates: time 0.04824/0.8985, allocations: 29.33 MB / 0.571 GB, free: 128.8 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches