Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 107.7 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008013/0.0008014, allocations: 39.94 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2844, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01108/0.2955, allocations: 14.07 MB / 413.6 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009596/0.3052, allocations: 4.368 MB / 417.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003736/0.3089, allocations: 51.88 kB / 418 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.3109, allocations: 0.7555 MB / 418.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003184/0.3141, allocations: 1.231 MB / 420 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009896/0.3151, allocations: 459.2 kB / 420.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003192/0.3183, allocations: 3.444 MB / 423.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.3196, allocations: 1.144 MB / 425 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007484/0.3204, allocations: 0.6691 MB / 425.7 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.3215, allocations: 1.191 MB / 426.9 MB, free: 5.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.3217, allocations: 100 kB / 427 MB, free: 5.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.3232, allocations: 0.8969 MB / 427.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006922/0.3239, allocations: 0.9815 MB / 428.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008185/0.3247, allocations: 1.168 MB / 430 MB, free: 2.754 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003378/0.3281, allocations: 3.77 MB / 433.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3281, allocations: 0 / 433.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3281, allocations: 0 / 433.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.616e-05/0.3282, allocations: 0 / 433.8 MB, free: 14.97 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.00565/0.3339, allocations: 2.882 MB / 436.6 MB, free: 12.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3339, allocations: 12.03 kB / 436.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006234/0.3402, allocations: 1.643 MB / 438.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.3438, allocations: 1.312 MB / 439.6 MB, free: 9.012 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.3439, allocations: 118.8 kB / 439.7 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004626/0.3444, allocations: 159.9 kB / 439.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01044/0.3549, allocations: 6.355 MB / 446.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.593e-05/0.355, allocations: 39.66 kB / 446.3 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/0.3553, allocations: 79.89 kB / 446.4 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/0.3578, allocations: 1.441 MB / 447.8 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.3686, allocations: 5.67 MB / 453.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03357/0.4023, allocations: 26.3 MB / 479.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004831/0.4072, allocations: 2.263 MB / 482 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.4087, allocations: 1.023 MB / 483.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-05/0.4088, allocations: 15.92 kB / 483.1 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.4089, allocations: 46.5 kB / 483.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 4.248e-06/0.4089, allocations: 0 / 483.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.02349/0.4324, allocations: 8.58 MB / 491.7 MB, free: 3.258 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.4326, allocations: 144.5 kB / 491.8 MB, free: 3.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/0.4379, allocations: 2.819 MB / 494.7 MB, free: 256 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.4381, allocations: 37.7 kB / 494.7 MB, free: 212 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001719/0.4398, allocations: 2.063 MB / 496.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006512/0.4405, allocations: 438.6 kB / 497.2 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001694/0.4422, allocations: 0.8924 MB / 498.1 MB, free: 12.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4423, allocations: 305.1 kB / 498.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00238/0.4447, allocations: 1.418 MB / 499.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004188/0.4489, allocations: 4.242 MB / 0.4922 GB, free: 5.375 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1966/0.6455, allocations: 6.127 MB / 0.4982 GB, free: 92.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.765e-05/0.6457, allocations: 28.56 kB / 0.4982 GB, free: 92.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01038/0.6561, allocations: 6.11 MB / 0.5042 GB, free: 91.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.6561, allocations: 49.16 kB / 0.5042 GB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.233e-05/0.6562, allocations: 99.91 kB / 0.5043 GB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002105/0.6583, allocations: 0.7932 MB / 0.5051 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/0.6609, allocations: 0.9942 MB / 0.5061 GB, free: 90.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004467/0.6654, allocations: 4.155 MB / 0.5101 GB, free: 88.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002598/0.668, allocations: 250.7 kB / 0.5104 GB, free: 88.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003353/0.6683, allocations: 277.5 kB / 0.5106 GB, free: 88.64 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001515/0.6699, allocations: 1.373 MB / 0.512 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000299/0.6702, allocations: 236.5 kB / 0.5122 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.6737, allocations: 1.858 MB / 0.514 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.041e-05/0.6737, allocations: 12 kB / 0.514 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.6737, allocations: 4 kB / 0.514 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.6737, allocations: 3.984 kB / 0.514 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008043/0.6818, allocations: 4.796 MB / 0.5187 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6818, allocations: 1.5 kB / 0.5187 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.6824, allocations: 131.8 kB / 0.5189 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.6842, allocations: 0.656 MB / 0.5195 GB, free: 80.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-05/0.6843, allocations: 16 kB / 0.5195 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003594/0.6879, allocations: 3.701 MB / 0.5231 GB, free: 76.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6879, allocations: 0 / 0.5231 GB, free: 76.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03072/0.7187, allocations: 20.36 MB / 0.543 GB, free: 56.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005699/0.7193, allocations: 290 kB / 0.5433 GB, free: 55.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003673/0.7197, allocations: 19.94 kB / 0.5433 GB, free: 55.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008481/0.7205, allocations: 67.58 kB / 0.5434 GB, free: 55.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.7207, allocations: 63.98 kB / 0.5434 GB, free: 55.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.629e-05/0.7208, allocations: 28 kB / 0.5435 GB, free: 55.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00212/0.7229, allocations: 1.754 MB / 0.5452 GB, free: 53.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7229, allocations: 0 / 0.5452 GB, free: 53.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003415/0.7263, allocations: 0.8411 MB / 0.546 GB, free: 53.15 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.0003244/0.7267, allocations: 149.2 kB / 0.5461 GB, free: 53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004121/0.7308, allocations: 3.416 MB / 0.5495 GB, free: 49.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.7308, allocations: 4 kB / 0.5495 GB, free: 49.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009044/0.7317, allocations: 0.929 MB / 0.5504 GB, free: 48.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.7331, allocations: 248.9 kB / 0.5506 GB, free: 48.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008104/0.7412, allocations: 7.499 MB / 0.5579 GB, free: 40.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/0.7429, allocations: 2.219 MB / 0.5601 GB, free: 38.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002831/0.7457, allocations: 1.404 MB / 0.5615 GB, free: 37.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.7461, allocations: 163.4 kB / 0.5616 GB, free: 37.03 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.7461, allocations: 0 / 0.5616 GB, free: 37.03 MB / 378.7 MB Notification: Performance of Templates: time 0.03873/0.7848, allocations: 26.37 MB / 0.5874 GB, free: 10.79 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@2/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