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.001571/0.001572, allocations: 111.9 kB / 17.06 MB, free: 5.996 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.001903/0.001903, allocations: 200 kB / 18 MB, free: 5.078 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 47.94 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2938, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009141/0.303, allocations: 7.116 MB / 407.8 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006176/0.3092, allocations: 3.15 MB / 411 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009626/0.3102, allocations: 31.88 kB / 411 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.3124, allocations: 0.782 MB / 411.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.3164, allocations: 1.351 MB / 413.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.3176, allocations: 495 kB / 413.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003305/0.3209, allocations: 2.53 MB / 416.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.3226, allocations: 1.153 MB / 417.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.3239, allocations: 0.7627 MB / 418.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001872/0.3258, allocations: 1.102 MB / 419.2 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000563/0.3264, allocations: 135.9 kB / 419.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.3285, allocations: 0.8853 MB / 420.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.3298, allocations: 0.9972 MB / 421.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.3313, allocations: 1.195 MB / 422.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.3354, allocations: 3.967 MB / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3355, allocations: 0 / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3355, allocations: 0 / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.236e-05/0.3355, allocations: 0 / 426.4 MB, free: 15.12 MB / 350.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.004448/0.34, allocations: 2.878 MB / 429.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.34, allocations: 12.03 kB / 429.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005389/0.3454, allocations: 1.639 MB / 430.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002306/0.3478, allocations: 1.336 MB / 432.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.228e-05/0.3479, allocations: 122.9 kB / 432.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003016/0.3482, allocations: 155.8 kB / 432.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009327/0.3575, allocations: 6.363 MB / 438.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.295e-05/0.3576, allocations: 27.75 kB / 438.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/0.3578, allocations: 83.89 kB / 439 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/0.3601, allocations: 1.445 MB / 440.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009851/0.3699, allocations: 5.67 MB / 446.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0313/0.4013, allocations: 26.2 MB / 472.3 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004799/0.4061, allocations: 2.273 MB / 474.6 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.4076, allocations: 1.023 MB / 475.6 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.782e-05/0.4077, allocations: 12 kB / 475.6 MB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.4077, allocations: 42.56 kB / 475.6 MB, free: 12.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.366e-06/0.4077, allocations: 0 / 475.6 MB, free: 12.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02132/0.4291, allocations: 8.587 MB / 484.2 MB, free: 3.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/0.4292, allocations: 136.5 kB / 484.4 MB, free: 3.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004506/0.4337, allocations: 2.823 MB / 487.2 MB, free: 484 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/0.4339, allocations: 41.69 kB / 487.2 MB, free: 436 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002097/0.436, allocations: 2.071 MB / 489.3 MB, free: 14.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005792/0.4366, allocations: 434.6 kB / 489.7 MB, free: 13.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.4378, allocations: 0.8886 MB / 490.6 MB, free: 12.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4379, allocations: 301.1 kB / 490.9 MB, free: 12.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/0.4402, allocations: 1.414 MB / 492.3 MB, free: 11.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005377/0.4456, allocations: 4.25 MB / 496.6 MB, free: 5.594 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007868/0.4535, allocations: 6.132 MB / 0.4909 GB, free: 14.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-05/0.4536, allocations: 28 kB / 0.4909 GB, free: 14.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01129/0.4649, allocations: 6.114 MB / 0.4969 GB, free: 7.902 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7e-05/0.465, allocations: 48 kB / 0.4969 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.4651, allocations: 100 kB / 0.497 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/0.4674, allocations: 0.8035 MB / 0.4978 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.4703, allocations: 0.9942 MB / 0.4988 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.4761, allocations: 4.469 MB / 0.5032 GB, free: 1.348 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002995/0.4792, allocations: 251.4 kB / 0.5034 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003907/0.4796, allocations: 280 kB / 0.5037 GB, free: 0.8281 MB / 430.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 (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.001999/0.4816, allocations: 1.372 MB / 0.505 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/0.482, allocations: 233 kB / 0.5052 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.4855, allocations: 1.845 MB / 0.507 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.055e-05/0.4856, allocations: 15.94 kB / 0.507 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4856, allocations: 4 kB / 0.5071 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.4856, allocations: 7.984 kB / 0.5071 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007968/0.4936, allocations: 4.786 MB / 0.5117 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.4936, allocations: 0 / 0.5117 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005865/0.4942, allocations: 135.8 kB / 0.5119 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/0.4961, allocations: 0.6483 MB / 0.5125 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.4962, allocations: 16.06 kB / 0.5125 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004855/0.5011, allocations: 3.948 MB / 0.5164 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.5011, allocations: 4.266 kB / 0.5164 GB, free: 3.559 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005568/0.5067, allocations: 3.688 MB / 0.52 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006622/0.5073, allocations: 293.9 kB / 0.5203 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.5076, allocations: 23.88 kB / 0.5203 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000794/0.5084, allocations: 63.91 kB / 0.5203 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.5085, allocations: 51.94 kB / 0.5204 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.077e-05/0.5086, allocations: 27.98 kB / 0.5204 GB, free: 15.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002675/0.5113, allocations: 1.762 MB / 0.5221 GB, free: 13.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.894e-06/0.5113, allocations: 0 / 0.5221 GB, free: 13.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003267/0.5146, allocations: 0.6523 MB / 0.5228 GB, free: 12.95 MB / 462.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 (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.0003477/0.5149, allocations: 143 kB / 0.5229 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005238/0.5202, allocations: 3.431 MB / 0.5263 GB, free: 9.383 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5202, allocations: 0.9375 kB / 0.5263 GB, free: 9.383 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.5214, allocations: 0.9278 MB / 0.5272 GB, free: 8.441 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.5229, allocations: 260 kB / 0.5274 GB, free: 8.191 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008279/0.5312, allocations: 5.43 MB / 0.5327 GB, free: 2.711 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/0.5334, allocations: 2.188 MB / 0.5349 GB, free: 500 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2113/0.7447, allocations: 1.396 MB / 0.5362 GB, free: 129.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005221/0.7453, allocations: 163.2 kB / 0.5364 GB, free: 129.7 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.7453, allocations: 0 / 0.5364 GB, free: 129.7 MB / 462.1 MB Notification: Performance of Templates: time 0.03263/0.7779, allocations: 20.7 MB / 0.5566 GB, free: 118 MB / 462.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