Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 117.5 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 213.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.5 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 63.73 kB / 306.5 MB, free: 0.8828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09902, allocations: 50.55 MB / 357 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01569/0.1147, allocations: 14 MB / 371 MB, free: 268 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.185/0.2998, allocations: 4.256 MB / 375.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.3023, allocations: 61.78 kB / 375.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.3043, allocations: 0.7323 MB / 376.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003232/0.3076, allocations: 1.209 MB / 377.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.3088, allocations: 472.4 kB / 377.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004061/0.3129, allocations: 2.579 MB / 380.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.3145, allocations: 1.228 MB / 381.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.3158, allocations: 0.7597 MB / 382.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.3175, allocations: 1.237 MB / 383.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002644/0.3178, allocations: 133.8 kB / 383.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.3196, allocations: 0.877 MB / 384.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3207, allocations: 1.007 MB / 385.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.3221, allocations: 1.199 MB / 386.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005418/0.3276, allocations: 3.789 MB / 390.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3276, allocations: 1.281 kB / 390.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3276, allocations: 0 / 390.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.372e-05/0.3277, allocations: 0 / 390.6 MB, free: 3.207 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.00583/0.3335, allocations: 2.872 MB / 393.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3336, allocations: 9 kB / 393.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005587/0.3392, allocations: 1.638 MB / 395.1 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.3414, allocations: 1.286 MB / 396.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.308e-05/0.3415, allocations: 116.8 kB / 396.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002987/0.3418, allocations: 161.9 kB / 396.6 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009121/0.3509, allocations: 6.36 MB / 403 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.376e-05/0.351, allocations: 31.66 kB / 403 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.3512, allocations: 80.67 kB / 403.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002519/0.3538, allocations: 1.441 MB / 404.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.3639, allocations: 5.668 MB / 410.2 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03254/0.3964, allocations: 26.29 MB / 436.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004597/0.4011, allocations: 2.262 MB / 438.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.4026, allocations: 1.019 MB / 439.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.208e-05/0.4027, allocations: 18.31 kB / 439.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.4027, allocations: 46.5 kB / 439.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 2.755e-06/0.4027, allocations: 0 / 439.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02147/0.4242, allocations: 8.571 MB / 448.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.4243, allocations: 144.5 kB / 448.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004258/0.4286, allocations: 2.811 MB / 451.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001631/0.4288, allocations: 44.12 kB / 451.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.4304, allocations: 2.057 MB / 453.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005088/0.4309, allocations: 444.4 kB / 453.9 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/0.4321, allocations: 0.8877 MB / 454.8 MB, free: 5.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4323, allocations: 309.1 kB / 455.1 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.4345, allocations: 1.418 MB / 456.5 MB, free: 3.625 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/0.4393, allocations: 4.246 MB / 460.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008044/0.4474, allocations: 6.135 MB / 466.9 MB, free: 6.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-05/0.4475, allocations: 28 kB / 466.9 MB, free: 6.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01186/0.4594, allocations: 6.103 MB / 473 MB, free: 272 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.531e-05/0.4595, allocations: 48 kB / 473.1 MB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/0.4596, allocations: 100 kB / 473.2 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/0.4619, allocations: 0.8013 MB / 474 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/0.4648, allocations: 0.9825 MB / 475 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.4711, allocations: 4.474 MB / 479.4 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002896/0.474, allocations: 247.5 kB / 479.7 MB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000424/0.4745, allocations: 283.2 kB / 480 MB, free: 9.207 MB / 398.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.002146/0.4766, allocations: 1.368 MB / 481.3 MB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003983/0.477, allocations: 229 kB / 481.5 MB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003981/0.481, allocations: 1.85 MB / 483.4 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.714e-05/0.4811, allocations: 19.98 kB / 483.4 MB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4811, allocations: 4 kB / 483.4 MB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4811, allocations: 11.92 kB / 483.4 MB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009213/0.4903, allocations: 4.807 MB / 488.2 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.4904, allocations: 4 kB / 488.2 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006448/0.491, allocations: 135.9 kB / 488.4 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.4931, allocations: 0.6483 MB / 489 MB, free: 44 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-05/0.4932, allocations: 16 kB / 489 MB, free: 28 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005574/0.4988, allocations: 3.952 MB / 493 MB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4988, allocations: 3.938 kB / 493 MB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006423/0.5052, allocations: 3.68 MB / 496.7 MB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006978/0.5059, allocations: 290 kB / 497 MB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.5062, allocations: 12 kB / 497 MB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008954/0.5071, allocations: 67.97 kB / 497 MB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.5073, allocations: 62.23 kB / 497.1 MB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.642e-05/0.5074, allocations: 27.98 kB / 497.1 MB, free: 7.754 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002997/0.5104, allocations: 1.75 MB / 498.9 MB, free: 5.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5104, allocations: 4.219 kB / 498.9 MB, free: 5.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003693/0.5141, allocations: 0.6328 MB / 499.5 MB, free: 5.359 MB / 414.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.0004147/0.5146, allocations: 152.1 kB / 499.7 MB, free: 5.207 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00629/0.5209, allocations: 3.646 MB / 0.4915 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5209, allocations: 0 / 0.4915 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.5223, allocations: 0.9307 MB / 0.4924 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.5243, allocations: 257.1 kB / 0.4927 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.5355, allocations: 6.616 MB / 0.4991 GB, free: 9.719 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002399/0.5379, allocations: 2.188 MB / 0.5013 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003395/0.5414, allocations: 1.4 MB / 0.5026 GB, free: 6.086 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.5418, allocations: 163.4 kB / 0.5028 GB, free: 5.93 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5418, allocations: 0 / 0.5028 GB, free: 5.93 MB / 430.1 MB Notification: Performance of Templates: time 0.2014/0.7432, allocations: 22.85 MB / 0.5251 GB, free: 146.6 MB / 446.1 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.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches