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.00121/0.00121, allocations: 106.2 kB / 18.25 MB, free: 4.781 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.00104/0.00104, allocations: 195.3 kB / 19.18 MB, free: 3.859 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 MB, free: 12.31 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.001173/0.001174, allocations: 51.92 kB / 281.3 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08358, allocations: 46.64 MB / 328 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01053/0.09416, allocations: 10.31 MB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006839/0.101, allocations: 3.867 MB / 342.1 MB, free: 6.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.1021, allocations: 59.81 kB / 342.2 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00355/0.1057, allocations: 2.071 MB / 344.3 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003287/0.109, allocations: 1.646 MB / 345.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.1103, allocations: 0.6862 MB / 346.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00349/0.1138, allocations: 3.389 MB / 350 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002754/0.1166, allocations: 2.701 MB / 352.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001694/0.1183, allocations: 1.277 MB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.1203, allocations: 1.752 MB / 355.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004843/0.1208, allocations: 264 kB / 356 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001913/0.1227, allocations: 1.108 MB / 357.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001288/0.124, allocations: 1.578 MB / 358.7 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.1258, allocations: 1.864 MB / 360.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005446/0.1312, allocations: 5.724 MB / 366.2 MB, free: 14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1312, allocations: 4 kB / 366.2 MB, free: 14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1313, allocations: 4 kB / 366.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.056e-05/0.1313, allocations: 3.938 kB / 366.3 MB, free: 13.99 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.006552/0.1379, allocations: 4.141 MB / 370.4 MB, free: 9.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.138, allocations: 8.031 kB / 370.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006331/0.1443, allocations: 1.848 MB / 372.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003408/0.1477, allocations: 1.933 MB / 374.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.1479, allocations: 205.2 kB / 374.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004748/0.1484, allocations: 267.9 kB / 374.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1534/0.3018, allocations: 9.971 MB / 384.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.47e-05/0.3019, allocations: 41.48 kB / 384.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003369/0.3023, allocations: 137.2 kB / 384.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003209/0.3055, allocations: 1.851 MB / 386.6 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01665/0.3221, allocations: 8.533 MB / 395.2 MB, free: 43.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03074/0.3529, allocations: 36.86 MB / 432 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008152/0.3611, allocations: 3.877 MB / 435.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.3629, allocations: 1.818 MB / 437.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009446/0.3724, allocations: 7.535 MB / 445.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.3725, allocations: 51.5 kB / 445.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 4.668e-06/0.3725, allocations: 0 / 445.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.05186/0.4243, allocations: 17.45 MB / 462.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.4244, allocations: 145.5 kB / 462.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.4291, allocations: 3.489 MB / 466.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.4293, allocations: 49.7 kB / 466.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001802/0.4311, allocations: 2.732 MB / 469.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006289/0.4317, allocations: 0.6403 MB / 469.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/0.4332, allocations: 1.115 MB / 470.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.522e-05/0.4333, allocations: 301.1 kB / 471.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002997/0.4363, allocations: 1.951 MB / 473.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0051/0.4414, allocations: 5.374 MB / 478.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008483/0.4499, allocations: 7.937 MB / 486.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-05/0.45, allocations: 32 kB / 486.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01498/0.465, allocations: 8.181 MB / 494.7 MB, free: 6.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.4652, allocations: 64.69 kB / 494.8 MB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/0.4653, allocations: 120 kB / 494.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004088/0.4694, allocations: 1.304 MB / 496.2 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/0.4733, allocations: 1.262 MB / 497.4 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008975/0.4823, allocations: 6.546 MB / 0.4922 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003786/0.4861, allocations: 295.7 kB / 0.4925 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000669/0.4867, allocations: 340 kB / 0.4928 GB, free: 12.51 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.002807/0.4896, allocations: 1.822 MB / 0.4946 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006219/0.4902, allocations: 304.5 kB / 0.4948 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007281/0.4975, allocations: 3.362 MB / 0.4981 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/0.4975, allocations: 23.94 kB / 0.4982 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.4976, allocations: 4 kB / 0.4982 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.4976, allocations: 7.969 kB / 0.4982 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/0.5125, allocations: 7.619 MB / 0.5056 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.691e-05/0.5125, allocations: 4 kB / 0.5056 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.5137, allocations: 235.7 kB / 0.5058 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003783/0.5175, allocations: 1.124 MB / 0.5069 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/0.5178, allocations: 32 kB / 0.507 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008703/0.5265, allocations: 6.164 MB / 0.513 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5265, allocations: 0 / 0.513 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009918/0.5364, allocations: 5.701 MB / 0.5186 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.5378, allocations: 0.575 MB / 0.5191 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006166/0.5384, allocations: 24 kB / 0.5191 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/0.5399, allocations: 95.95 kB / 0.5192 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.5402, allocations: 92.86 kB / 0.5193 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.5403, allocations: 43.98 kB / 0.5194 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003688/0.544, allocations: 2.158 MB / 0.5215 GB, free: 14.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.544, allocations: 3.938 kB / 0.5215 GB, free: 14.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00432/0.5484, allocations: 0.9193 MB / 0.5224 GB, free: 13.91 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.0004274/0.5488, allocations: 161.7 kB / 0.5225 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009254/0.5581, allocations: 5.546 MB / 0.5279 GB, free: 8.234 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.5581, allocations: 0 / 0.5279 GB, free: 8.234 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.5606, allocations: 1.535 MB / 0.5294 GB, free: 6.684 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.5631, allocations: 366.7 kB / 0.5298 GB, free: 6.328 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1538/0.7169, allocations: 8.489 MB / 0.5381 GB, free: 145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003365/0.7203, allocations: 2.848 MB / 0.5409 GB, free: 144.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.7214, allocations: 260.8 kB / 0.5411 GB, free: 144.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7214, allocations: 0 / 0.5411 GB, free: 144.2 MB / 430.1 MB Notification: Performance of Templates: time 0.07769/0.7991, allocations: 65.79 MB / 0.6053 GB, free: 94.03 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 -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