Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000838/0.0008377, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007482/0.0007484, allocations: 94.62 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 8 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2029, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02049/0.2234, allocations: 31.53 MB / 436.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.2406, allocations: 10.73 MB / 446.8 MB, free: 4.223 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004383/0.245, allocations: 143.7 kB / 447 MB, free: 4.082 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009043/0.246, allocations: 386 kB / 447.4 MB, free: 3.703 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.2491, allocations: 1.534 MB / 448.9 MB, free: 2.164 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.2503, allocations: 0.6319 MB / 449.5 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004503/0.2548, allocations: 4.758 MB / 454.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004853/0.2597, allocations: 4.485 MB / 458.8 MB, free: 8.016 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.2612, allocations: 1.058 MB / 459.8 MB, free: 6.953 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.2631, allocations: 1.658 MB / 461.5 MB, free: 5.289 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003365/0.2635, allocations: 124 kB / 461.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001709/0.2652, allocations: 1.041 MB / 462.7 MB, free: 4.125 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.2664, allocations: 1.418 MB / 464.1 MB, free: 2.703 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.2679, allocations: 1.705 MB / 465.8 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005193/0.2731, allocations: 5.537 MB / 471.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.2731, allocations: 0 / 471.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2731, allocations: 3.938 kB / 471.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.96e-05/0.2732, allocations: 0 / 471.3 MB, free: 11.42 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.005573/0.2788, allocations: 3.378 MB / 474.7 MB, free: 7.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.2789, allocations: 12.03 kB / 474.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005931/0.2848, allocations: 1.899 MB / 476.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003712/0.2886, allocations: 1.878 MB / 478.5 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.2887, allocations: 213.1 kB / 478.7 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005421/0.2893, allocations: 271.8 kB / 479 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01587/0.3052, allocations: 9.966 MB / 488.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.229e-05/0.3053, allocations: 39.59 kB / 489 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003321/0.3056, allocations: 131.9 kB / 489.1 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.3083, allocations: 1.856 MB / 490.9 MB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.3243, allocations: 8.513 MB / 499.5 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1938/0.5182, allocations: 36.84 MB / 0.5237 GB, free: 72.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007523/0.5257, allocations: 3.875 MB / 0.5275 GB, free: 70.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.5274, allocations: 1.799 MB / 0.5293 GB, free: 69.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007449/0.5349, allocations: 7.523 MB / 0.5366 GB, free: 64.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.5349, allocations: 58.78 kB / 0.5367 GB, free: 64.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.947e-06/0.535, allocations: 0 / 0.5367 GB, free: 64.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04017/0.5751, allocations: 17.37 MB / 0.5536 GB, free: 47.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.5752, allocations: 145.5 kB / 0.5538 GB, free: 46.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/0.5789, allocations: 3.446 MB / 0.5571 GB, free: 43.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.5791, allocations: 57.64 kB / 0.5572 GB, free: 43.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.5803, allocations: 2.732 MB / 0.5599 GB, free: 40.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005534/0.5809, allocations: 0.6414 MB / 0.5605 GB, free: 40.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002775/0.5811, allocations: 112 kB / 0.5606 GB, free: 39.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002497/0.5814, allocations: 0.5376 MB / 0.5611 GB, free: 39.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/0.5842, allocations: 1.935 MB / 0.563 GB, free: 37.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003802/0.5881, allocations: 5.347 MB / 0.5682 GB, free: 30.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006133/0.5942, allocations: 7.897 MB / 0.5759 GB, free: 20.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.853e-05/0.5943, allocations: 32 kB / 0.576 GB, free: 20.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.012/0.6063, allocations: 8.143 MB / 0.5839 GB, free: 12.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-05/0.6064, allocations: 56 kB / 0.584 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.983e-05/0.6065, allocations: 120 kB / 0.5841 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003475/0.61, allocations: 1.297 MB / 0.5854 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003354/0.6133, allocations: 1.263 MB / 0.5866 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006724/0.6201, allocations: 6.099 MB / 0.5926 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/0.624, allocations: 303.6 kB / 0.5928 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005143/0.6245, allocations: 341.2 kB / 0.5932 GB, free: 2.996 MB / 378.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.002398/0.6269, allocations: 1.812 MB / 0.5949 GB, free: 1.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.6274, allocations: 300.1 kB / 0.5952 GB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006574/0.634, allocations: 3.361 MB / 0.5985 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.291e-05/0.6341, allocations: 19.94 kB / 0.5985 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.6341, allocations: 12 kB / 0.5985 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.08e-05/0.6341, allocations: 11.91 kB / 0.5985 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.6477, allocations: 7.579 MB / 0.6059 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.6477, allocations: 0 / 0.6059 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.6489, allocations: 247.7 kB / 0.6062 GB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003678/0.6525, allocations: 1.116 MB / 0.6073 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.6527, allocations: 31.98 kB / 0.6073 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008006/0.6607, allocations: 5.72 MB / 0.6129 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6608, allocations: 3.188 kB / 0.6129 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009314/0.6701, allocations: 5.697 MB / 0.6185 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007276/0.6708, allocations: 357 kB / 0.6188 GB, free: 8.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/0.6711, allocations: 24.09 kB / 0.6188 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.6723, allocations: 95.88 kB / 0.6189 GB, free: 8.363 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/0.6726, allocations: 88.86 kB / 0.619 GB, free: 8.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.6727, allocations: 51.27 kB / 0.619 GB, free: 8.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003031/0.6758, allocations: 2.118 MB / 0.6211 GB, free: 6.121 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6758, allocations: 0 / 0.6211 GB, free: 6.121 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003696/0.6795, allocations: 0.9154 MB / 0.622 GB, free: 5.211 MB / 410.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.0003587/0.6799, allocations: 180.1 kB / 0.6222 GB, free: 5.035 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007106/0.687, allocations: 4.754 MB / 0.6268 GB, free: 300 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.687, allocations: 8 kB / 0.6268 GB, free: 292 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.6893, allocations: 1.527 MB / 0.6283 GB, free: 14.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.6916, allocations: 349 kB / 0.6287 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/0.7046, allocations: 9.887 MB / 0.6383 GB, free: 4.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002665/0.7073, allocations: 2.855 MB / 0.6411 GB, free: 1.594 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004495/0.7119, allocations: 1.719 MB / 0.6428 GB, free: 15.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005963/0.7125, allocations: 211.4 kB / 0.643 GB, free: 15.66 MB / 442.7 MB Notification: Performance of SimCode: time 8.12e-07/0.7125, allocations: 0 / 0.643 GB, free: 15.66 MB / 442.7 MB Notification: Performance of Templates: time 0.2215/0.934, allocations: 32.24 MB / 0.6745 GB, free: 161.4 MB / 458.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches