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.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009023/0.0009023, allocations: 177.3 kB / 16.71 MB, free: 5.09 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.215/1.215, allocations: 225.7 MB / 243.2 MB, free: 10.18 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.0006967/0.0006966, allocations: 94.17 kB / 294.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.0002418, allocations: 8 kB / 354.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 50.41 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008536/0.2027, allocations: 12.68 MB / 417.3 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007177/0.2099, allocations: 6.887 MB / 424.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.2115, allocations: 55.88 kB / 424.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006487/0.2122, allocations: 270.7 kB / 424.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002456/0.2147, allocations: 1.23 MB / 425.7 MB, free: 9.543 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008634/0.2156, allocations: 471.2 kB / 426.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002898/0.2185, allocations: 3.425 MB / 429.6 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.22, allocations: 1.553 MB / 431.1 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008174/0.2208, allocations: 0.708 MB / 431.8 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.2219, allocations: 1.148 MB / 433 MB, free: 2.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.2221, allocations: 80 kB / 433.1 MB, free: 2.078 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.2232, allocations: 0.8695 MB / 433.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005335/0.2237, allocations: 0.9542 MB / 434.9 MB, free: 256 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008312/0.2246, allocations: 1.166 MB / 436.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/0.2277, allocations: 3.703 MB / 439.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2277, allocations: 0 / 439.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2277, allocations: 0 / 439.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.865e-05/0.2278, allocations: 0 / 439.8 MB, free: 11.36 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.003626/0.2314, allocations: 2.392 MB / 442.2 MB, free: 8.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2314, allocations: 15.97 kB / 442.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00532/0.2368, allocations: 1.682 MB / 443.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/0.2392, allocations: 1.328 MB / 445.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.265e-05/0.2393, allocations: 122.8 kB / 445.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003044/0.2396, allocations: 155.9 kB / 445.4 MB, free: 5.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008415/0.2481, allocations: 6.355 MB / 451.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.17e-05/0.2482, allocations: 39.64 kB / 451.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002352/0.2484, allocations: 79.89 kB / 451.9 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002283/0.2507, allocations: 1.433 MB / 453.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009113/0.2598, allocations: 5.658 MB / 459 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/0.2868, allocations: 26.28 MB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003956/0.2908, allocations: 2.251 MB / 487.5 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.292, allocations: 1.018 MB / 488.6 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.2921, allocations: 11.98 kB / 488.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.2921, allocations: 50.56 kB / 488.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 3.907e-06/0.2921, allocations: 0 / 488.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01886/0.311, allocations: 8.535 MB / 497.2 MB, free: 168 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.3111, allocations: 144.5 kB / 497.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.3144, allocations: 2.796 MB / 0.4884 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.415e-05/0.3145, allocations: 37.7 kB / 0.4884 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3157, allocations: 2.071 MB / 0.4904 GB, free: 11.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/0.3161, allocations: 438.6 kB / 0.4909 GB, free: 10.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3163, allocations: 88 kB / 0.4909 GB, free: 10.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002632/0.3165, allocations: 499.7 kB / 0.4914 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.3185, allocations: 1.402 MB / 0.4928 GB, free: 8.609 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003472/0.322, allocations: 4.218 MB / 0.4969 GB, free: 2.961 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1624/0.4844, allocations: 6.121 MB / 0.5029 GB, free: 90.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-05/0.4845, allocations: 32.75 kB / 0.5029 GB, free: 90.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009264/0.4938, allocations: 6.068 MB / 0.5088 GB, free: 88.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.118e-05/0.4939, allocations: 50.22 kB / 0.5089 GB, free: 88.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.721e-05/0.494, allocations: 99.22 kB / 0.509 GB, free: 88.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001909/0.4959, allocations: 0.7988 MB / 0.5098 GB, free: 88.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/0.4982, allocations: 0.9985 MB / 0.5107 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003924/0.5021, allocations: 4.145 MB / 0.5148 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/0.5044, allocations: 251.3 kB / 0.515 GB, free: 85.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/0.5047, allocations: 280 kB / 0.5153 GB, free: 85.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (537): * Single equations (assignments): 533 * 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,10,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001289/0.506, allocations: 1.381 MB / 0.5166 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.5062, allocations: 232.9 kB / 0.5169 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002887/0.5091, allocations: 1.841 MB / 0.5187 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.5091, allocations: 16.84 kB / 0.5187 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5092, allocations: 4 kB / 0.5187 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.5092, allocations: 3.984 kB / 0.5187 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006114/0.5153, allocations: 4.792 MB / 0.5234 GB, free: 77.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5153, allocations: 4 kB / 0.5234 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.5158, allocations: 135.8 kB / 0.5235 GB, free: 77.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00167/0.5175, allocations: 0.6483 MB / 0.5241 GB, free: 77.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/0.5176, allocations: 20 kB / 0.5241 GB, free: 77.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003384/0.521, allocations: 3.688 MB / 0.5277 GB, free: 73.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.521, allocations: 8.031 kB / 0.5278 GB, free: 73.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004218/0.5252, allocations: 3.676 MB / 0.5313 GB, free: 69.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003722/0.5256, allocations: 309.8 kB / 0.5316 GB, free: 69.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.5258, allocations: 12.47 kB / 0.5317 GB, free: 69.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007572/0.5266, allocations: 66.64 kB / 0.5317 GB, free: 69.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.5267, allocations: 55.92 kB / 0.5318 GB, free: 69.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/0.5268, allocations: 28.06 kB / 0.5318 GB, free: 69.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001881/0.5287, allocations: 1.734 MB / 0.5335 GB, free: 67.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.352e-06/0.5287, allocations: 3.938 kB / 0.5335 GB, free: 67.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002676/0.5314, allocations: 0.6441 MB / 0.5341 GB, free: 66.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002443/0.5316, allocations: 151.3 kB / 0.5343 GB, free: 66.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00363/0.5353, allocations: 3.405 MB / 0.5376 GB, free: 63.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5353, allocations: 0 / 0.5376 GB, free: 63.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008537/0.5362, allocations: 0.9335 MB / 0.5385 GB, free: 62.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.5376, allocations: 247.3 kB / 0.5387 GB, free: 62.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.5436, allocations: 6.696 MB / 0.5453 GB, free: 55.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.545, allocations: 2.184 MB / 0.5474 GB, free: 53.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002756/0.5478, allocations: 1.403 MB / 0.5488 GB, free: 51.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.5482, allocations: 159.4 kB / 0.5489 GB, free: 51.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5482, allocations: 0 / 0.5489 GB, free: 51.52 MB / 378.7 MB Notification: Performance of Templates: time 0.03035/0.5786, allocations: 21.81 MB / 0.5702 GB, free: 29.82 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches