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.0008438/0.0008438, allocations: 97.17 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000957/0.000957, allocations: 208.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 247.5 MB, free: 11.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.00025, allocations: 4 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09134, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.1744/0.2658, allocations: 13.41 MB / 373.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008736/0.2745, allocations: 4.301 MB / 377.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.2767, allocations: 53.31 kB / 377.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009436/0.2777, allocations: 278.4 kB / 378 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003883/0.2816, allocations: 1.206 MB / 379.2 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.283, allocations: 463.3 kB / 379.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004892/0.2879, allocations: 3.46 MB / 383.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002669/0.2906, allocations: 1.409 MB / 384.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.292, allocations: 0.6226 MB / 385.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001826/0.2938, allocations: 1.144 MB / 386.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004247/0.2943, allocations: 86.66 kB / 386.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.2961, allocations: 0.866 MB / 387.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.2971, allocations: 0.9484 MB / 388.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.2987, allocations: 1.155 MB / 389.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003113/0.3018, allocations: 2.913 MB / 392.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3018, allocations: 0 / 392.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3018, allocations: 0 / 392.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001325/0.302, allocations: 1.031 kB / 392.2 MB, free: 3.582 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.005376/0.3073, allocations: 2.381 MB / 394.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3074, allocations: 12.62 kB / 394.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006274/0.3137, allocations: 1.691 MB / 396.3 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002713/0.3164, allocations: 1.28 MB / 397.6 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3166, allocations: 117.1 kB / 397.7 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005771/0.3171, allocations: 162.5 kB / 397.9 MB, free: 80 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3277, allocations: 6.375 MB / 404.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.008e-05/0.3278, allocations: 31.75 kB / 404.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004197/0.3282, allocations: 80.75 kB / 404.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/0.3308, allocations: 1.435 MB / 405.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.3417, allocations: 5.679 MB / 411.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03041/0.3722, allocations: 26.27 MB / 437.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004531/0.3767, allocations: 2.266 MB / 440 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.3782, allocations: 1.018 MB / 441 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/0.3783, allocations: 17.23 kB / 441 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.3784, allocations: 46.5 kB / 441.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.418e-06/0.3784, allocations: 0 / 441.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02241/0.4008, allocations: 8.545 MB / 449.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.4009, allocations: 144.6 kB / 449.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/0.4055, allocations: 2.811 MB / 452.6 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000228/0.4058, allocations: 45.58 kB / 452.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.4074, allocations: 2.075 MB / 454.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000621/0.408, allocations: 439.5 kB / 455.1 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006563/0.4087, allocations: 378.1 kB / 455.5 MB, free: 6.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.109e-05/0.4088, allocations: 305.1 kB / 455.8 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002439/0.4112, allocations: 1.418 MB / 457.2 MB, free: 4.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004118/0.4154, allocations: 4.246 MB / 461.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006807/0.4222, allocations: 6.125 MB / 467.6 MB, free: 7.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.089e-05/0.4223, allocations: 28 kB / 467.6 MB, free: 7.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01172/0.4341, allocations: 6.105 MB / 473.7 MB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.941e-05/0.4342, allocations: 54.72 kB / 473.8 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001536/0.4343, allocations: 100 kB / 473.9 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002377/0.4367, allocations: 0.7928 MB / 474.7 MB, free: 424 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003054/0.4398, allocations: 0.9865 MB / 475.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/0.4453, allocations: 4.163 MB / 479.8 MB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003188/0.4485, allocations: 251.6 kB / 480 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006992/0.4492, allocations: 276 kB / 480.3 MB, free: 10.61 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.002853/0.4521, allocations: 1.373 MB / 481.7 MB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005663/0.4527, allocations: 229 kB / 481.9 MB, free: 9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00421/0.4569, allocations: 1.853 MB / 483.8 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.291e-05/0.4569, allocations: 16 kB / 483.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.457, allocations: 0 / 483.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.457, allocations: 7.984 kB / 483.8 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009953/0.4669, allocations: 4.815 MB / 488.6 MB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.467, allocations: 4 kB / 488.6 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006419/0.4676, allocations: 135.8 kB / 488.7 MB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.4697, allocations: 0.6405 MB / 489.4 MB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4698, allocations: 20.06 kB / 489.4 MB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004841/0.4747, allocations: 3.696 MB / 493.1 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.4747, allocations: 3.984 kB / 493.1 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005834/0.4806, allocations: 3.695 MB / 496.8 MB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.4812, allocations: 293.9 kB / 497.1 MB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000413/0.4817, allocations: 20 kB / 497.1 MB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.4827, allocations: 63.97 kB / 497.2 MB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4829, allocations: 51.92 kB / 497.2 MB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-05/0.483, allocations: 28 kB / 497.2 MB, free: 9.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00315/0.4861, allocations: 1.753 MB / 499 MB, free: 7.652 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4862, allocations: 0 / 499 MB, free: 7.652 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003877/0.49, allocations: 0.6391 MB / 499.6 MB, free: 7.016 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.0004784/0.4905, allocations: 145.7 kB / 499.8 MB, free: 6.867 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005669/0.4962, allocations: 3.4 MB / 0.4914 GB, free: 3.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.4962, allocations: 3.938 kB / 0.4914 GB, free: 3.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.4975, allocations: 0.94 MB / 0.4923 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.4998, allocations: 248.9 kB / 0.4925 GB, free: 2.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.5105, allocations: 6.945 MB / 0.4993 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002442/0.5129, allocations: 2.188 MB / 0.5015 GB, free: 9.047 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005835/0.5135, allocations: 199.4 kB / 0.5017 GB, free: 8.852 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5135, allocations: 0 / 0.5017 GB, free: 8.852 MB / 430.1 MB Notification: Performance of Templates: time 0.2275/0.7411, allocations: 46.45 MB / 0.547 GB, free: 131 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/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