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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 88.34 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001014, allocations: 181.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.3 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 5.469 kB / 300.8 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1112, allocations: 50.42 MB / 351.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.0123/0.1236, allocations: 12.63 MB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009669/0.1333, allocations: 4.021 MB / 367.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001845/0.1352, allocations: 51.88 kB / 367.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.1366, allocations: 0.6026 MB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004887/0.1415, allocations: 2.148 MB / 370.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1425, allocations: 407.2 kB / 371.1 MB, free: 120 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1878/0.3304, allocations: 2.708 MB / 373.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002465/0.3329, allocations: 1.323 MB / 375.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.3343, allocations: 0.7049 MB / 375.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.3362, allocations: 1.136 MB / 377 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002397/0.3364, allocations: 78 kB / 377 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.3379, allocations: 0.7422 MB / 377.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001096/0.339, allocations: 0.9384 MB / 378.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005102/0.3395, allocations: 492.9 kB / 379.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.3427, allocations: 2.947 MB / 382.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3427, allocations: 1.031 kB / 382.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3427, allocations: 0 / 382.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.378e-05/0.3428, allocations: 0 / 382.2 MB, free: 8.918 MB / 302.1 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.004127/0.3469, allocations: 2.431 MB / 384.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.347, allocations: 9.188 kB / 384.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005282/0.3522, allocations: 1.692 MB / 386.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.3549, allocations: 1.282 MB / 387.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.355, allocations: 116.4 kB / 387.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003152/0.3553, allocations: 153.9 kB / 387.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008736/0.3641, allocations: 6.371 MB / 394.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.08e-05/0.3642, allocations: 33.78 kB / 394.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.3644, allocations: 82.27 kB / 394.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002014/0.3664, allocations: 1.432 MB / 395.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008879/0.3753, allocations: 5.658 MB / 401.4 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03062/0.406, allocations: 26.28 MB / 427.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004438/0.4105, allocations: 2.256 MB / 429.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/0.4119, allocations: 1.015 MB / 431 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.412, allocations: 11.52 kB / 431 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.412, allocations: 50.5 kB / 431 MB, free: 1.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.176e-06/0.412, allocations: 0 / 431 MB, free: 1.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.02785/0.4399, allocations: 8.542 MB / 439.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.44, allocations: 144.5 kB / 439.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006105/0.4461, allocations: 2.801 MB / 442.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003072/0.4465, allocations: 41.7 kB / 442.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002126/0.4486, allocations: 2.071 MB / 444.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/0.4494, allocations: 434.3 kB / 445 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/0.4497, allocations: 88 kB / 445.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0004193/0.4501, allocations: 499.7 kB / 445.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003648/0.4538, allocations: 1.398 MB / 447 MB, free: 1.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00672/0.4605, allocations: 4.229 MB / 451.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00532/0.4658, allocations: 2.389 MB / 453.6 MB, free: 9.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.489e-05/0.4659, allocations: 28 kB / 453.7 MB, free: 9.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01292/0.4789, allocations: 6.076 MB / 459.7 MB, free: 3.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.346e-05/0.479, allocations: 51.95 kB / 459.8 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/0.4791, allocations: 100.1 kB / 459.9 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002292/0.4814, allocations: 0.8116 MB / 460.7 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003188/0.4847, allocations: 0.9903 MB / 461.7 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005905/0.4906, allocations: 4.15 MB / 465.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00385/0.4945, allocations: 253.3 kB / 466.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008453/0.4953, allocations: 276 kB / 466.3 MB, free: 12.46 MB / 382.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003532/0.4989, allocations: 1.367 MB / 467.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006839/0.4996, allocations: 229.4 kB / 467.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/0.504, allocations: 1.853 MB / 469.8 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.515e-05/0.5041, allocations: 15.98 kB / 469.8 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.5041, allocations: 4 kB / 469.8 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.5041, allocations: 7.922 kB / 469.8 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/0.5162, allocations: 4.799 MB / 474.6 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.5162, allocations: 0 / 474.6 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006485/0.5169, allocations: 135.8 kB / 474.7 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/0.5188, allocations: 0.6426 MB / 475.4 MB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.5189, allocations: 28.06 kB / 475.4 MB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005211/0.5242, allocations: 3.689 MB / 479.1 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5242, allocations: 4.031 kB / 479.1 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006433/0.5306, allocations: 3.676 MB / 482.8 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.5317, allocations: 298 kB / 483.1 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006827/0.5324, allocations: 15.95 kB / 483.1 MB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.5337, allocations: 67.97 kB / 483.2 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.5339, allocations: 51.92 kB / 483.2 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.72e-05/0.534, allocations: 35.91 kB / 483.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004568/0.5386, allocations: 1.742 MB / 485 MB, free: 9.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5386, allocations: 0 / 485 MB, free: 9.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006165/0.5448, allocations: 0.6409 MB / 485.6 MB, free: 8.898 MB / 398.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00065/0.5454, allocations: 147.9 kB / 485.8 MB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007414/0.5529, allocations: 3.408 MB / 489.2 MB, free: 5.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.5529, allocations: 0 / 489.2 MB, free: 5.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.5544, allocations: 0.9286 MB / 490.1 MB, free: 4.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/0.5573, allocations: 238.5 kB / 490.3 MB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.5714, allocations: 6.429 MB / 496.8 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/0.5752, allocations: 2.189 MB / 499 MB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003727/0.5789, allocations: 1.4 MB / 0.4886 GB, free: 10.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004467/0.5794, allocations: 163.4 kB / 0.4888 GB, free: 9.918 MB / 414.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5794, allocations: 0.6562 kB / 0.4888 GB, free: 9.918 MB / 414.1 MB Notification: Performance of Templates: time 0.04724/0.6266, allocations: 21.39 MB / 0.5097 GB, free: 4.668 MB / 430.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches