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.001433/0.001433, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2568, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007912/0.2647, allocations: 7.093 MB / 417 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005973/0.2708, allocations: 3.162 MB / 420.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.2719, allocations: 35.88 kB / 420.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.2738, allocations: 0.7898 MB / 421 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003024/0.2768, allocations: 1.288 MB / 422.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.2779, allocations: 491 kB / 422.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003167/0.2811, allocations: 2.563 MB / 425.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.2824, allocations: 1.157 MB / 426.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009036/0.2833, allocations: 0.7472 MB / 427.2 MB, free: 176 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.2846, allocations: 1.094 MB / 428.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.2849, allocations: 136 kB / 428.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.2864, allocations: 0.8657 MB / 429.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008252/0.2873, allocations: 0.9855 MB / 430.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009811/0.2882, allocations: 1.176 MB / 431.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003973/0.2922, allocations: 3.917 MB / 435.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2923, allocations: 0 / 435.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2923, allocations: 0 / 435.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.177e-05/0.2923, allocations: 0 / 435.4 MB, free: 7.977 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.005112/0.2974, allocations: 2.875 MB / 438.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.2975, allocations: 12.03 kB / 438.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005839/0.3033, allocations: 1.643 MB / 439.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.3057, allocations: 1.301 MB / 441.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.985e-05/0.3058, allocations: 118.8 kB / 441.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003009/0.3061, allocations: 155.8 kB / 441.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008575/0.3147, allocations: 6.359 MB / 447.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.18e-05/0.3148, allocations: 35.66 kB / 447.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002283/0.315, allocations: 75.89 kB / 448 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/0.3173, allocations: 1.441 MB / 449.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009407/0.3268, allocations: 5.677 MB / 455.1 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.3536, allocations: 26.2 MB / 481.3 MB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.3577, allocations: 2.258 MB / 483.6 MB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.359, allocations: 1.026 MB / 484.6 MB, free: 5.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.359, allocations: 15.98 kB / 484.6 MB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3591, allocations: 46.5 kB / 484.6 MB, free: 5.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.017e-06/0.3591, allocations: 0 / 484.6 MB, free: 5.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02142/0.3805, allocations: 8.574 MB / 493.2 MB, free: 12.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.3806, allocations: 136.5 kB / 493.3 MB, free: 12.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/0.3841, allocations: 2.819 MB / 496.2 MB, free: 9.387 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.3843, allocations: 41.7 kB / 496.2 MB, free: 9.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.3856, allocations: 2.059 MB / 498.3 MB, free: 7.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004517/0.3861, allocations: 446.6 kB / 498.7 MB, free: 6.809 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000979/0.3871, allocations: 0.8808 MB / 499.6 MB, free: 5.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3872, allocations: 301.1 kB / 499.9 MB, free: 5.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/0.3892, allocations: 1.418 MB / 0.4895 GB, free: 4.191 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003722/0.3929, allocations: 4.246 MB / 0.4937 GB, free: 14.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006612/0.3996, allocations: 6.14 MB / 0.4997 GB, free: 6.965 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.834e-05/0.3997, allocations: 28 kB / 0.4997 GB, free: 6.938 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01074/0.4104, allocations: 6.108 MB / 0.5057 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.579e-05/0.4105, allocations: 50.66 kB / 0.5057 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-05/0.4106, allocations: 100 kB / 0.5058 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/0.4129, allocations: 0.8085 MB / 0.5066 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002714/0.4156, allocations: 0.9864 MB / 0.5076 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00552/0.4211, allocations: 4.472 MB / 0.5119 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/0.4238, allocations: 255.5 kB / 0.5122 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/0.4241, allocations: 280 kB / 0.5125 GB, free: 9.742 MB / 446.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.001771/0.4259, allocations: 1.371 MB / 0.5138 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003465/0.4263, allocations: 229 kB / 0.514 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.43, allocations: 1.849 MB / 0.5158 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.4301, allocations: 15.94 kB / 0.5158 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.4301, allocations: 4 kB / 0.5158 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4301, allocations: 7.984 kB / 0.5158 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007818/0.4379, allocations: 4.778 MB / 0.5205 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.438, allocations: 8.031 kB / 0.5205 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000583/0.4386, allocations: 135.8 kB / 0.5206 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001967/0.4405, allocations: 0.6405 MB / 0.5213 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.88e-05/0.4406, allocations: 19.98 kB / 0.5213 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/0.4455, allocations: 3.953 MB / 0.5252 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.4455, allocations: 3.938 kB / 0.5252 GB, free: 12.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005619/0.4512, allocations: 3.689 MB / 0.5288 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000548/0.4517, allocations: 297.8 kB / 0.529 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.452, allocations: 19.94 kB / 0.5291 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.4528, allocations: 59.91 kB / 0.5291 GB, free: 8.359 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.453, allocations: 55.88 kB / 0.5292 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.065e-05/0.4531, allocations: 31.97 kB / 0.5292 GB, free: 8.273 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.4555, allocations: 1.754 MB / 0.5309 GB, free: 6.512 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4555, allocations: 0 / 0.5309 GB, free: 6.512 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002947/0.4584, allocations: 0.6328 MB / 0.5315 GB, free: 5.879 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.0003278/0.4588, allocations: 139.1 kB / 0.5317 GB, free: 5.734 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004913/0.4637, allocations: 3.431 MB / 0.535 GB, free: 2.312 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4637, allocations: 0 / 0.535 GB, free: 2.312 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.4649, allocations: 0.9284 MB / 0.5359 GB, free: 1.371 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.4663, allocations: 258.6 kB / 0.5362 GB, free: 1.121 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2099/0.6762, allocations: 5.677 MB / 0.5417 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00186/0.6781, allocations: 2.186 MB / 0.5438 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005576/0.6787, allocations: 199.6 kB / 0.544 GB, free: 124.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6787, allocations: 0 / 0.544 GB, free: 124.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04839/0.7271, allocations: 47.39 MB / 0.5903 GB, free: 82.16 MB / 462.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