Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001836/0.001836, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007271/0.0007272, allocations: 94.97 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002095/0.0002095, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1958, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008634/0.2045, allocations: 12.68 MB / 424.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006812/0.2113, allocations: 7.282 MB / 432 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008458/0.2122, allocations: 63.81 kB / 432.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005012/0.2127, allocations: 270.7 kB / 432.3 MB, free: 4.828 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001876/0.2146, allocations: 1.23 MB / 433.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006508/0.2153, allocations: 459.2 kB / 434 MB, free: 3.145 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.2178, allocations: 3.491 MB / 437.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001723/0.2195, allocations: 1.565 MB / 439.1 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007571/0.2203, allocations: 0.7041 MB / 439.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.2215, allocations: 1.148 MB / 440.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.2217, allocations: 80 kB / 441 MB, free: 12.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.223, allocations: 0.8501 MB / 441.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007494/0.2238, allocations: 0.9503 MB / 442.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008883/0.2247, allocations: 1.162 MB / 444 MB, free: 9.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.2278, allocations: 3.699 MB / 447.7 MB, free: 5.379 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2279, allocations: 0 / 447.7 MB, free: 5.379 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2279, allocations: 0 / 447.7 MB, free: 5.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.2279, allocations: 4 kB / 447.7 MB, free: 5.375 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.2315, allocations: 2.403 MB / 450.1 MB, free: 2.914 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2316, allocations: 15.97 kB / 450.1 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005441/0.237, allocations: 1.686 MB / 451.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.2393, allocations: 1.289 MB / 453.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.096e-05/0.2393, allocations: 118.8 kB / 453.2 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002996/0.2397, allocations: 155.9 kB / 453.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007926/0.2476, allocations: 6.359 MB / 459.7 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.388e-05/0.2477, allocations: 27.72 kB / 459.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.2479, allocations: 83.83 kB / 459.8 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002295/0.2502, allocations: 1.445 MB / 461.3 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009042/0.2593, allocations: 5.65 MB / 466.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02641/0.2857, allocations: 26.28 MB / 493.2 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003944/0.2897, allocations: 2.247 MB / 495.4 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.2909, allocations: 1.025 MB / 496.5 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.291, allocations: 12.2 kB / 496.5 MB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.291, allocations: 54.48 kB / 496.5 MB, free: 2.883 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 2.926e-06/0.291, allocations: 0 / 496.5 MB, free: 2.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01928/0.3103, allocations: 8.552 MB / 0.4932 GB, free: 10.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.3104, allocations: 140.5 kB / 0.4934 GB, free: 10.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/0.3138, allocations: 2.8 MB / 0.4961 GB, free: 7.203 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.3139, allocations: 41.7 kB / 0.4961 GB, free: 7.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.3152, allocations: 2.067 MB / 0.4982 GB, free: 5.059 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/0.3156, allocations: 434.6 kB / 0.4986 GB, free: 4.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.3157, allocations: 88 kB / 0.4987 GB, free: 4.543 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000266/0.316, allocations: 499.7 kB / 0.4991 GB, free: 4.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.318, allocations: 1.398 MB / 0.5005 GB, free: 2.641 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1824/0.5004, allocations: 4.226 MB / 0.5046 GB, free: 87.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00645/0.5069, allocations: 6.121 MB / 0.5106 GB, free: 82.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.985e-05/0.507, allocations: 32.59 kB / 0.5106 GB, free: 82.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009669/0.5167, allocations: 6.071 MB / 0.5166 GB, free: 80.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.494e-05/0.5168, allocations: 50.06 kB / 0.5166 GB, free: 80.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-05/0.5169, allocations: 100.2 kB / 0.5167 GB, free: 80.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001991/0.5189, allocations: 0.7987 MB / 0.5175 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.5213, allocations: 0.9897 MB / 0.5185 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.5255, allocations: 4.143 MB / 0.5225 GB, free: 78.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.5279, allocations: 244.5 kB / 0.5227 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002607/0.5282, allocations: 279.8 kB / 0.523 GB, free: 77.66 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.001432/0.5296, allocations: 1.376 MB / 0.5243 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.5299, allocations: 233.7 kB / 0.5246 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.533, allocations: 1.852 MB / 0.5264 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/0.533, allocations: 15.47 kB / 0.5264 GB, free: 74.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.533, allocations: 4 kB / 0.5264 GB, free: 74.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5331, allocations: 3.984 kB / 0.5264 GB, free: 74.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006972/0.54, allocations: 4.78 MB / 0.5311 GB, free: 70 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5401, allocations: 3.938 kB / 0.5311 GB, free: 70 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.5406, allocations: 127.9 kB / 0.5312 GB, free: 69.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.5424, allocations: 0.6521 MB / 0.5318 GB, free: 69.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.845e-05/0.5425, allocations: 23.98 kB / 0.5319 GB, free: 69.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/0.5461, allocations: 3.695 MB / 0.5355 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5461, allocations: 0 / 0.5355 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004683/0.5508, allocations: 3.681 MB / 0.5391 GB, free: 61.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004396/0.5513, allocations: 301.9 kB / 0.5393 GB, free: 61.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002184/0.5515, allocations: 21.16 kB / 0.5394 GB, free: 61.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008028/0.5523, allocations: 55.92 kB / 0.5394 GB, free: 61.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.5525, allocations: 59.86 kB / 0.5395 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.619e-05/0.5526, allocations: 37.3 kB / 0.5395 GB, free: 61.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002012/0.5546, allocations: 1.73 MB / 0.5412 GB, free: 59.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5546, allocations: 0 / 0.5412 GB, free: 59.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002887/0.5575, allocations: 0.6432 MB / 0.5418 GB, free: 58.87 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.0002802/0.5578, allocations: 156.4 kB / 0.542 GB, free: 58.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004237/0.562, allocations: 3.4 MB / 0.5453 GB, free: 55.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5621, allocations: 0 / 0.5453 GB, free: 55.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009158/0.563, allocations: 0.9361 MB / 0.5462 GB, free: 54.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.5647, allocations: 249.3 kB / 0.5464 GB, free: 54.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007993/0.5727, allocations: 6.696 MB / 0.553 GB, free: 47.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.5743, allocations: 2.184 MB / 0.5551 GB, free: 45.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002832/0.5772, allocations: 1.392 MB / 0.5565 GB, free: 43.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.5775, allocations: 164.2 kB / 0.5566 GB, free: 43.63 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5776, allocations: 0 / 0.5566 GB, free: 43.63 MB / 378.7 MB Notification: Performance of Templates: time 0.03315/0.6107, allocations: 21.82 MB / 0.5779 GB, free: 21.92 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches