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.001336/0.001336, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.00135/0.00135, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.335/1.335, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009386/0.0009386, allocations: 47.77 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09089, allocations: 49.43 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01135/0.1023, allocations: 10.29 MB / 361.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007405/0.1097, allocations: 3.874 MB / 365.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.1108, allocations: 55.81 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003563/0.1144, allocations: 2.075 MB / 367.8 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003531/0.1179, allocations: 1.644 MB / 369.4 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.1196, allocations: 0.6902 MB / 370.1 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1998/0.3194, allocations: 3.354 MB / 373.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004422/0.3239, allocations: 2.68 MB / 376.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00296/0.3269, allocations: 1.265 MB / 377.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003393/0.3303, allocations: 1.754 MB / 379.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.3314, allocations: 263.2 kB / 379.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.3341, allocations: 1.123 MB / 380.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/0.3359, allocations: 1.568 MB / 382.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002143/0.3381, allocations: 1.866 MB / 384 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006729/0.3448, allocations: 5.937 MB / 389.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3448, allocations: 3.984 kB / 389.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3448, allocations: 4 kB / 389.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001341/0.345, allocations: 0 / 389.9 MB, free: 6.449 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.007101/0.3521, allocations: 4.127 MB / 394.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3522, allocations: 16.25 kB / 394.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005691/0.3578, allocations: 1.853 MB / 395.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004117/0.362, allocations: 1.906 MB / 397.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.3621, allocations: 208.7 kB / 398 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004786/0.3626, allocations: 272.8 kB / 398.3 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01938/0.382, allocations: 9.974 MB / 408.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.925e-05/0.3821, allocations: 34.47 kB / 408.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000352/0.3825, allocations: 138.5 kB / 408.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/0.3854, allocations: 1.851 MB / 410.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01811/0.4035, allocations: 8.544 MB / 418.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04486/0.4484, allocations: 36.69 MB / 455.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009556/0.458, allocations: 3.883 MB / 459.4 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/0.4605, allocations: 1.811 MB / 461.2 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.4717, allocations: 7.51 MB / 468.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.4718, allocations: 59.44 kB / 468.8 MB, free: 10.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.839e-06/0.4718, allocations: 0 / 468.8 MB, free: 10.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.0479/0.5197, allocations: 17.43 MB / 486.2 MB, free: 9.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.5198, allocations: 153.5 kB / 486.4 MB, free: 8.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.5241, allocations: 3.469 MB / 489.8 MB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.5243, allocations: 49.7 kB / 489.9 MB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/0.5259, allocations: 2.73 MB / 492.6 MB, free: 2.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005517/0.5264, allocations: 0.6466 MB / 493.3 MB, free: 1.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.5277, allocations: 1.113 MB / 494.4 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.5278, allocations: 301.1 kB / 494.7 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/0.5305, allocations: 1.961 MB / 496.6 MB, free: 14.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/0.5353, allocations: 5.373 MB / 0.4902 GB, free: 7.484 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008644/0.544, allocations: 7.928 MB / 0.498 GB, free: 13.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.301e-05/0.544, allocations: 36 kB / 0.498 GB, free: 13.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01419/0.5582, allocations: 8.166 MB / 0.506 GB, free: 5.672 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/0.5583, allocations: 56 kB / 0.506 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/0.5585, allocations: 120 kB / 0.5062 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/0.5622, allocations: 1.305 MB / 0.5074 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/0.566, allocations: 1.259 MB / 0.5087 GB, free: 2.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008946/0.575, allocations: 6.542 MB / 0.5151 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004621/0.5796, allocations: 303.5 kB / 0.5153 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000883/0.5806, allocations: 347.9 kB / 0.5157 GB, free: 11.62 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.003398/0.584, allocations: 1.813 MB / 0.5174 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005575/0.5845, allocations: 304.1 kB / 0.5177 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006881/0.5914, allocations: 3.361 MB / 0.521 GB, free: 6.117 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/0.5915, allocations: 20 kB / 0.521 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.5915, allocations: 8 kB / 0.521 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/0.5915, allocations: 7.969 kB / 0.5211 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2534/0.8449, allocations: 7.574 MB / 0.5285 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.961e-05/0.845, allocations: 1.5 kB / 0.5285 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.8465, allocations: 242 kB / 0.5287 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004191/0.8507, allocations: 1.119 MB / 0.5298 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003747/0.8511, allocations: 28.56 kB / 0.5298 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009505/0.8607, allocations: 6.162 MB / 0.5358 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8607, allocations: 7.375 kB / 0.5358 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01194/0.8727, allocations: 5.707 MB / 0.5414 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.8739, allocations: 349.4 kB / 0.5417 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000391/0.8743, allocations: 32.14 kB / 0.5418 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.8756, allocations: 87.94 kB / 0.5418 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.8759, allocations: 87.12 kB / 0.5419 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.8761, allocations: 48.38 kB / 0.542 GB, free: 143 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004179/0.8803, allocations: 2.15 MB / 0.5441 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8803, allocations: 0 / 0.5441 GB, free: 142.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005294/0.8856, allocations: 0.9156 MB / 0.545 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.0004935/0.8861, allocations: 171.4 kB / 0.5451 GB, free: 142 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00752/0.8936, allocations: 4.798 MB / 0.5498 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.8937, allocations: 0 / 0.5498 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.8958, allocations: 1.544 MB / 0.5513 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/0.8986, allocations: 355 kB / 0.5517 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.9142, allocations: 7.998 MB / 0.5595 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002596/0.9168, allocations: 2.862 MB / 0.5623 GB, free: 133 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003253/0.9201, allocations: 1.7 MB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005641/0.9207, allocations: 219.2 kB / 0.5641 GB, free: 131.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.134e-06/0.9207, allocations: 0 / 0.5641 GB, free: 131.7 MB / 446.1 MB Notification: Performance of Templates: time 0.05076/0.9714, allocations: 29.31 MB / 0.5928 GB, free: 102.8 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 -s cvode -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