Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009894/0.0009894, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.132/1.132, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008587/0.0008588, allocations: 97.09 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009012/0.0009014, allocations: 39.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2055, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01069/0.2162, allocations: 14.1 MB / 387.9 MB, free: 34.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007211/0.2235, allocations: 4.359 MB / 392.3 MB, free: 30.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000973/0.2246, allocations: 59.81 kB / 392.3 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.2257, allocations: 0.7516 MB / 393.1 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.2273, allocations: 1.217 MB / 394.3 MB, free: 28.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005929/0.228, allocations: 475.2 kB / 394.8 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002025/0.23, allocations: 3.459 MB / 398.2 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008413/0.2308, allocations: 1.153 MB / 399.4 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004282/0.2313, allocations: 0.6613 MB / 400 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008415/0.2321, allocations: 1.211 MB / 401.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.2323, allocations: 92 kB / 401.4 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009612/0.2333, allocations: 0.8968 MB / 402.2 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004953/0.2338, allocations: 0.9776 MB / 403.2 MB, free: 20.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005808/0.2344, allocations: 1.176 MB / 404.4 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.2363, allocations: 3.77 MB / 408.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2363, allocations: 4 kB / 408.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.2364, allocations: 4 kB / 408.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.2364, allocations: 0 / 408.2 MB, free: 15.04 MB / 298.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.0033/0.2397, allocations: 2.879 MB / 411.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2397, allocations: 8.031 kB / 411.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004766/0.2445, allocations: 1.647 MB / 412.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.2464, allocations: 1.363 MB / 414.1 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.2465, allocations: 130.7 kB / 414.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.2467, allocations: 147.9 kB / 414.3 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005441/0.2521, allocations: 6.367 MB / 420.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.433e-05/0.2522, allocations: 31.8 kB / 420.7 MB, free: 1.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.2524, allocations: 75.89 kB / 420.8 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001783/0.2542, allocations: 1.437 MB / 422.3 MB, free: 336 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007885/0.2621, allocations: 5.67 MB / 427.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02418/0.2863, allocations: 26.31 MB / 454.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/0.2902, allocations: 2.258 MB / 456.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.2916, allocations: 1.027 MB / 457.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.528e-05/0.2916, allocations: 11.98 kB / 457.5 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.2917, allocations: 50.3 kB / 457.6 MB, free: 12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 4.188e-06/0.2917, allocations: 0 / 457.6 MB, free: 12 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.01796/0.3096, allocations: 8.6 MB / 466.2 MB, free: 3.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.3097, allocations: 140.6 kB / 466.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.3129, allocations: 2.835 MB / 469.2 MB, free: 248 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-05/0.313, allocations: 41.7 kB / 469.2 MB, free: 200 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.3142, allocations: 2.067 MB / 471.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/0.3145, allocations: 446.6 kB / 471.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000929/0.3154, allocations: 0.8808 MB / 472.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.66e-05/0.3155, allocations: 305.1 kB / 472.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/0.3173, allocations: 1.422 MB / 474.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/0.3207, allocations: 4.238 MB / 478.5 MB, free: 5.363 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005457/0.3261, allocations: 6.14 MB / 484.7 MB, free: 13.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.067e-05/0.3262, allocations: 28 kB / 484.7 MB, free: 13.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.008854/0.335, allocations: 6.103 MB / 490.8 MB, free: 7.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.425e-05/0.3351, allocations: 48.78 kB / 490.9 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.294e-05/0.3352, allocations: 100 kB / 491 MB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.3372, allocations: 0.8012 MB / 491.8 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/0.3396, allocations: 0.9902 MB / 492.7 MB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004772/0.3444, allocations: 4.148 MB / 496.9 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/0.3466, allocations: 247.6 kB / 497.1 MB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/0.3469, allocations: 276 kB / 497.4 MB, free: 0.9297 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.001541/0.3484, allocations: 1.375 MB / 498.8 MB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.3487, allocations: 232.9 kB / 499 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003448/0.3522, allocations: 1.853 MB / 0.4891 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.3522, allocations: 12 kB / 0.4891 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.3522, allocations: 8 kB / 0.4891 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.3523, allocations: 7.984 kB / 0.4891 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0076/0.3599, allocations: 4.801 MB / 0.4938 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.3599, allocations: 4.062 kB / 0.4938 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005271/0.3604, allocations: 135.9 kB / 0.494 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.3623, allocations: 0.6443 MB / 0.4946 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/0.3624, allocations: 19.98 kB / 0.4946 GB, free: 7.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004026/0.3664, allocations: 3.702 MB / 0.4982 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.3664, allocations: 4.031 kB / 0.4982 GB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1764/0.5428, allocations: 20.44 MB / 0.5182 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006635/0.5435, allocations: 431.3 kB / 0.5186 GB, free: 114.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.5437, allocations: 19.88 kB / 0.5186 GB, free: 114.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007656/0.5445, allocations: 64.12 kB / 0.5187 GB, free: 114.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.5446, allocations: 58.95 kB / 0.5187 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-05/0.5447, allocations: 27.41 kB / 0.5188 GB, free: 114.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001825/0.5465, allocations: 1.762 MB / 0.5205 GB, free: 113.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.5465, allocations: 0 / 0.5205 GB, free: 113.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002717/0.5493, allocations: 0.8481 MB / 0.5213 GB, free: 113.6 MB / 394.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.0002543/0.5495, allocations: 147.9 kB / 0.5215 GB, free: 113.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.5528, allocations: 3.408 MB / 0.5248 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.5528, allocations: 2 kB / 0.5248 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008273/0.5536, allocations: 0.944 MB / 0.5257 GB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.5548, allocations: 239 kB / 0.5259 GB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006256/0.5611, allocations: 7.51 MB / 0.5333 GB, free: 102.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.5625, allocations: 2.235 MB / 0.5355 GB, free: 100.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002492/0.565, allocations: 1.396 MB / 0.5368 GB, free: 98.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.5653, allocations: 171.4 kB / 0.537 GB, free: 98.72 MB / 394.7 MB Notification: Performance of SimCode: time 4.4e-07/0.5653, allocations: 2.844 kB / 0.537 GB, free: 98.72 MB / 394.7 MB Notification: Performance of Templates: time 0.03037/0.5957, allocations: 26.4 MB / 0.5628 GB, free: 72.39 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches