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.001104/0.001104, allocations: 109.4 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.001086/0.001086, 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.345/1.345, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001156/0.001156, allocations: 56.14 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08149, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01091/0.09244, allocations: 10.31 MB / 339 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007395/0.09986, allocations: 3.883 MB / 342.9 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.1014, allocations: 59.81 kB / 343 MB, free: 5.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003754/0.1052, allocations: 2.067 MB / 345 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003934/0.1091, allocations: 1.642 MB / 346.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.1107, allocations: 0.6939 MB / 347.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004289/0.115, allocations: 3.377 MB / 350.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003055/0.1181, allocations: 2.696 MB / 353.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002343/0.1204, allocations: 1.269 MB / 354.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002956/0.1234, allocations: 1.756 MB / 356.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.1245, allocations: 264 kB / 356.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.1271, allocations: 1.123 MB / 357.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001598/0.1287, allocations: 1.574 MB / 359.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.1306, allocations: 1.864 MB / 361.3 MB, free: 3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006957/0.1376, allocations: 5.94 MB / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.1376, allocations: 0 / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.589e-06/0.1377, allocations: 4 kB / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001526/0.1378, allocations: 0 / 367.2 MB, free: 13.04 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.008398/0.1462, allocations: 4.133 MB / 371.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1463, allocations: 8.031 kB / 371.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006247/0.1525, allocations: 1.852 MB / 373.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004767/0.1573, allocations: 1.968 MB / 375.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.1575, allocations: 209.2 kB / 375.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007843/0.1583, allocations: 267.9 kB / 375.7 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1622/0.3205, allocations: 9.977 MB / 385.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.549e-05/0.3206, allocations: 41.84 kB / 385.7 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003169/0.3209, allocations: 134.7 kB / 385.8 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003102/0.3241, allocations: 1.856 MB / 387.7 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.34, allocations: 8.525 MB / 396.2 MB, free: 43.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03088/0.3709, allocations: 36.7 MB / 432.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007886/0.3788, allocations: 3.874 MB / 436.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/0.3807, allocations: 1.818 MB / 438.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009821/0.3905, allocations: 7.53 MB / 446.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.3906, allocations: 51.55 kB / 446.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 4.078e-06/0.3906, allocations: 0 / 446.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.0488/0.4394, allocations: 17.45 MB / 463.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.4395, allocations: 141.5 kB / 463.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004485/0.444, allocations: 3.485 MB / 467.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003077/0.4443, allocations: 49.7 kB / 467.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.4461, allocations: 2.736 MB / 470 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007835/0.4469, allocations: 0.6402 MB / 470.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.4482, allocations: 1.119 MB / 471.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.706e-05/0.4483, allocations: 305.1 kB / 472.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00295/0.4513, allocations: 1.951 MB / 474 MB, free: 14.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005103/0.4564, allocations: 5.37 MB / 479.4 MB, free: 7.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008817/0.4653, allocations: 7.937 MB / 487.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.653e-05/0.4654, allocations: 39.94 kB / 487.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01533/0.4807, allocations: 8.177 MB / 495.6 MB, free: 5.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.466e-05/0.4809, allocations: 57 kB / 495.6 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001244/0.481, allocations: 120.5 kB / 495.7 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003968/0.485, allocations: 1.296 MB / 497 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/0.4889, allocations: 1.263 MB / 498.3 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008726/0.4977, allocations: 6.538 MB / 0.493 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/0.5014, allocations: 303.6 kB / 0.4933 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007442/0.5021, allocations: 343.9 kB / 0.4936 GB, free: 11.67 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.002461/0.5046, allocations: 1.818 MB / 0.4954 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004988/0.5051, allocations: 300.1 kB / 0.4957 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006656/0.5118, allocations: 3.369 MB / 0.499 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.683e-05/0.5119, allocations: 19.94 kB / 0.499 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.5119, allocations: 4 kB / 0.499 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.5119, allocations: 7.984 kB / 0.499 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.5258, allocations: 7.581 MB / 0.5064 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.5259, allocations: 4 kB / 0.5064 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.5271, allocations: 239.7 kB / 0.5066 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/0.5307, allocations: 1.12 MB / 0.5077 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001894/0.5309, allocations: 31.98 kB / 0.5078 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008207/0.5392, allocations: 6.153 MB / 0.5138 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5392, allocations: 7.984 kB / 0.5138 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009455/0.5486, allocations: 5.711 MB / 0.5194 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001687/0.5504, allocations: 0.575 MB / 0.5199 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004037/0.5508, allocations: 31.94 kB / 0.5199 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.552, allocations: 91.88 kB / 0.52 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.5523, allocations: 84.88 kB / 0.5201 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/0.5525, allocations: 47.94 kB / 0.5202 GB, free: 172 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003254/0.5557, allocations: 2.158 MB / 0.5223 GB, free: 14.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5557, allocations: 0 / 0.5223 GB, free: 14.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004327/0.5601, allocations: 0.9193 MB / 0.5232 GB, free: 13.11 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.0003721/0.5605, allocations: 176.2 kB / 0.5233 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006772/0.5672, allocations: 4.786 MB / 0.528 GB, free: 8.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5673, allocations: 0 / 0.528 GB, free: 8.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.5695, allocations: 1.535 MB / 0.5295 GB, free: 6.609 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.5714, allocations: 358.5 kB / 0.5299 GB, free: 6.262 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1748/0.7461, allocations: 8.01 MB / 0.5377 GB, free: 145.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003989/0.7502, allocations: 2.851 MB / 0.5405 GB, free: 144.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004366/0.7546, allocations: 1.7 MB / 0.5421 GB, free: 144.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.7552, allocations: 216.6 kB / 0.5423 GB, free: 144.4 MB / 430.1 MB Notification: Performance of SimCode: time 3.286e-06/0.7553, allocations: 3.938 kB / 0.5423 GB, free: 144.4 MB / 430.1 MB Notification: Performance of Templates: time 0.05157/0.8068, allocations: 29.34 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 cvode -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