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.001202/0.001202, allocations: 101 kB / 17.59 MB, free: 5.422 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.001365/0.001365, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.636/1.636, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 46.86 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01274/0.1257, allocations: 10.28 MB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008423/0.1342, allocations: 3.87 MB / 364.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002126/0.1364, allocations: 51.88 kB / 364.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00479/0.1413, allocations: 2.079 MB / 367 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005534/0.1468, allocations: 1.644 MB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002133/0.149, allocations: 0.6979 MB / 369.4 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1979/0.3469, allocations: 3.35 MB / 372.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003533/0.3505, allocations: 2.685 MB / 375.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.3527, allocations: 1.257 MB / 376.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.3554, allocations: 1.757 MB / 378.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008824/0.3563, allocations: 261.6 kB / 378.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.3588, allocations: 1.126 MB / 379.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001883/0.3607, allocations: 1.57 MB / 381.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.3628, allocations: 1.861 MB / 383.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006163/0.369, allocations: 5.723 MB / 388.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.369, allocations: 0 / 388.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3691, allocations: 1.094 kB / 388.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.3692, allocations: 0 / 388.9 MB, free: 6.141 MB / 302.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.009352/0.3786, allocations: 4.138 MB / 393.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3786, allocations: 9.625 kB / 393.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006765/0.3854, allocations: 1.855 MB / 394.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003695/0.3891, allocations: 1.878 MB / 396.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.3893, allocations: 217.6 kB / 397 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006261/0.3899, allocations: 272.6 kB / 397.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01919/0.4091, allocations: 9.971 MB / 407.3 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.4093, allocations: 35.22 kB / 407.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004828/0.4097, allocations: 132.7 kB / 407.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/0.413, allocations: 1.859 MB / 409.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01859/0.4316, allocations: 8.539 MB / 417.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04519/0.4768, allocations: 36.83 MB / 454.7 MB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009687/0.4865, allocations: 3.896 MB / 458.6 MB, free: 4.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002483/0.489, allocations: 1.81 MB / 460.4 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.5, allocations: 7.516 MB / 467.9 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.5001, allocations: 55.5 kB / 467.9 MB, free: 10.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.551e-06/0.5001, allocations: 3.562 kB / 467.9 MB, free: 10.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05581/0.5559, allocations: 17.42 MB / 485.4 MB, free: 9.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.5561, allocations: 145.5 kB / 485.5 MB, free: 9.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00644/0.5625, allocations: 3.473 MB / 489 MB, free: 5.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004019/0.563, allocations: 45.7 kB / 489 MB, free: 5.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/0.5651, allocations: 2.74 MB / 491.8 MB, free: 2.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.5662, allocations: 0.6397 MB / 492.4 MB, free: 2.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002473/0.5687, allocations: 1.121 MB / 493.5 MB, free: 1.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.099e-05/0.5688, allocations: 301.1 kB / 493.8 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003289/0.5721, allocations: 1.947 MB / 495.8 MB, free: 14.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006734/0.5788, allocations: 5.377 MB / 0.4894 GB, free: 7.945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/0.589, allocations: 7.929 MB / 0.4971 GB, free: 14.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/0.5891, allocations: 36 kB / 0.4972 GB, free: 14.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01825/0.6074, allocations: 8.177 MB / 0.5052 GB, free: 6.152 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.6076, allocations: 56 kB / 0.5052 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/0.6078, allocations: 120 kB / 0.5053 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00427/0.6121, allocations: 1.304 MB / 0.5066 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/0.6166, allocations: 1.259 MB / 0.5078 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.6267, allocations: 6.548 MB / 0.5142 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004853/0.6316, allocations: 307.5 kB / 0.5145 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/0.6329, allocations: 343.9 kB / 0.5148 GB, free: 12.09 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.004427/0.6373, allocations: 1.813 MB / 0.5166 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008517/0.6382, allocations: 307.9 kB / 0.5169 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008348/0.6465, allocations: 3.361 MB / 0.5202 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.151e-05/0.6466, allocations: 24 kB / 0.5202 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.801e-05/0.6467, allocations: 4 kB / 0.5202 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.028e-05/0.6467, allocations: 11.91 kB / 0.5202 GB, free: 6.555 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2176/0.8644, allocations: 7.593 MB / 0.5276 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.464e-05/0.8645, allocations: 2.281 kB / 0.5277 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.866, allocations: 239.4 kB / 0.5279 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/0.8703, allocations: 1.126 MB / 0.529 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003567/0.8707, allocations: 26.16 kB / 0.529 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009257/0.8799, allocations: 6.17 MB / 0.535 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.88, allocations: 3.5 kB / 0.535 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/0.8912, allocations: 5.706 MB / 0.5406 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.8926, allocations: 351.2 kB / 0.5409 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009673/0.8936, allocations: 23.16 kB / 0.541 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/0.8953, allocations: 94.2 kB / 0.5411 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/0.8957, allocations: 86.69 kB / 0.5411 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.8958, allocations: 54.55 kB / 0.5412 GB, free: 142.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004128/0.9, allocations: 2.147 MB / 0.5433 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9, allocations: 0 / 0.5433 GB, free: 142.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005142/0.9051, allocations: 0.9181 MB / 0.5442 GB, free: 142.1 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.0004893/0.9056, allocations: 170.2 kB / 0.5443 GB, free: 142 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008471/0.9141, allocations: 5.544 MB / 0.5498 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.9142, allocations: 0 / 0.5498 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002084/0.9163, allocations: 1.538 MB / 0.5513 GB, free: 139.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.9188, allocations: 361.1 kB / 0.5516 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.9349, allocations: 8.48 MB / 0.5599 GB, free: 134.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002783/0.9377, allocations: 2.856 MB / 0.5627 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/0.9388, allocations: 256.6 kB / 0.5629 GB, free: 131.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.623e-06/0.9388, allocations: 4 kB / 0.5629 GB, free: 131.8 MB / 446.1 MB Notification: Performance of Templates: time 0.07638/1.015, allocations: 65.73 MB / 0.6271 GB, free: 67.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/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