Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007756/0.0007756, allocations: 96.05 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002078/0.0002078, allocations: 8 kB / 360.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2052, allocations: 51.4 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0214/0.2267, allocations: 31.53 MB / 443.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.2444, allocations: 11.15 MB / 454.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004568/0.249, allocations: 143.6 kB / 454.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000937/0.25, allocations: 378.1 kB / 455.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003326/0.2533, allocations: 1.526 MB / 456.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.2547, allocations: 0.6319 MB / 457.4 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004667/0.2594, allocations: 4.824 MB / 462.2 MB, free: 6.785 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004834/0.2642, allocations: 4.469 MB / 466.7 MB, free: 2.055 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.2656, allocations: 1.054 MB / 467.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00186/0.2674, allocations: 1.662 MB / 469.4 MB, free: 15.33 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002867/0.2677, allocations: 124 kB / 469.5 MB, free: 15.21 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.2694, allocations: 1.022 MB / 470.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.2707, allocations: 1.418 MB / 472 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.2721, allocations: 1.709 MB / 473.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005035/0.2771, allocations: 5.529 MB / 479.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2772, allocations: 0 / 479.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2772, allocations: 0 / 479.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.466e-05/0.2773, allocations: 4 kB / 479.2 MB, free: 5.484 MB / 346.7 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.005844/0.2831, allocations: 3.381 MB / 482.6 MB, free: 2.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2832, allocations: 8.031 kB / 482.6 MB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005973/0.2892, allocations: 1.899 MB / 484.5 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/0.2926, allocations: 1.855 MB / 486.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.2928, allocations: 213.1 kB / 486.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/0.2933, allocations: 275.8 kB / 486.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01663/0.3099, allocations: 9.966 MB / 496.8 MB, free: 3.102 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.695e-05/0.31, allocations: 39.59 kB / 496.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003749/0.3104, allocations: 131.9 kB / 497 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002752/0.3132, allocations: 1.856 MB / 498.8 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01569/0.3289, allocations: 8.528 MB / 0.4955 GB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2367/0.5656, allocations: 36.83 MB / 0.5314 GB, free: 65.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008103/0.5738, allocations: 3.871 MB / 0.5352 GB, free: 63.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001944/0.5757, allocations: 1.808 MB / 0.537 GB, free: 62.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008843/0.5846, allocations: 7.529 MB / 0.5443 GB, free: 56.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.5847, allocations: 51.5 kB / 0.5444 GB, free: 56.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.947e-06/0.5847, allocations: 0 / 0.5444 GB, free: 56.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04439/0.6291, allocations: 17.37 MB / 0.5613 GB, free: 39.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.6291, allocations: 145.5 kB / 0.5615 GB, free: 39.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.6327, allocations: 3.434 MB / 0.5648 GB, free: 35.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.6329, allocations: 59.02 kB / 0.5649 GB, free: 35.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.634, allocations: 2.735 MB / 0.5676 GB, free: 33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004618/0.6344, allocations: 0.6385 MB / 0.5682 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.6346, allocations: 112 kB / 0.5683 GB, free: 32.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.6348, allocations: 0.5415 MB / 0.5688 GB, free: 31.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.637, allocations: 1.928 MB / 0.5707 GB, free: 29.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003211/0.6402, allocations: 5.358 MB / 0.5759 GB, free: 22.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006155/0.6463, allocations: 7.898 MB / 0.5837 GB, free: 13.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-05/0.6464, allocations: 32 kB / 0.5837 GB, free: 13.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01163/0.658, allocations: 8.133 MB / 0.5916 GB, free: 4.926 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/0.6581, allocations: 56 kB / 0.5917 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-05/0.6582, allocations: 124.1 kB / 0.5918 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003396/0.6616, allocations: 1.294 MB / 0.5931 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003188/0.6648, allocations: 1.267 MB / 0.5943 GB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007703/0.6725, allocations: 6.096 MB / 0.6003 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003866/0.6764, allocations: 299.5 kB / 0.6005 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005819/0.677, allocations: 344 kB / 0.6009 GB, free: 11.33 MB / 394.7 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.002955/0.68, allocations: 1.82 MB / 0.6026 GB, free: 9.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.6805, allocations: 304 kB / 0.6029 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006626/0.6871, allocations: 3.362 MB / 0.6062 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/0.6872, allocations: 21.56 kB / 0.6062 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.6872, allocations: 4 kB / 0.6062 GB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.6872, allocations: 15.84 kB / 0.6063 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.7008, allocations: 7.588 MB / 0.6137 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.7009, allocations: 4 kB / 0.6137 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.702, allocations: 239.7 kB / 0.6139 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003628/0.7056, allocations: 1.113 MB / 0.615 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.7057, allocations: 31.92 kB / 0.615 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007948/0.7137, allocations: 5.722 MB / 0.6206 GB, free: 6.895 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7137, allocations: 0 / 0.6206 GB, free: 6.895 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00937/0.7231, allocations: 5.701 MB / 0.6262 GB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008235/0.7239, allocations: 357 kB / 0.6265 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.7243, allocations: 27.98 kB / 0.6265 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.7254, allocations: 91.88 kB / 0.6266 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.7257, allocations: 84.83 kB / 0.6267 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.7258, allocations: 47.42 kB / 0.6268 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002917/0.7288, allocations: 2.13 MB / 0.6288 GB, free: 14.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7288, allocations: 0 / 0.6288 GB, free: 14.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003863/0.7326, allocations: 0.9154 MB / 0.6297 GB, free: 13.52 MB / 426.7 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.000377/0.733, allocations: 175.7 kB / 0.6299 GB, free: 13.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00758/0.7406, allocations: 4.758 MB / 0.6345 GB, free: 8.605 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.7407, allocations: 0 / 0.6345 GB, free: 8.605 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002269/0.7429, allocations: 1.527 MB / 0.636 GB, free: 7.062 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/0.7453, allocations: 339.9 kB / 0.6364 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.7591, allocations: 9.896 MB / 0.646 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002765/0.762, allocations: 2.851 MB / 0.6488 GB, free: 9.906 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004053/0.766, allocations: 1.719 MB / 0.6505 GB, free: 8.184 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005559/0.7666, allocations: 215.4 kB / 0.6507 GB, free: 7.977 MB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7666, allocations: 0 / 0.6507 GB, free: 7.977 MB / 442.7 MB Notification: Performance of Templates: time 0.2244/0.991, allocations: 32.25 MB / 0.6822 GB, free: 150.2 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches