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.001108/0.001108, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001021/0.001021, allocations: 192 kB / 18.63 MB, free: 4.375 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.299/1.299, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009677/0.0009677, allocations: 46.8 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1121, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007857/0.12, allocations: 7.106 MB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005728/0.1257, allocations: 3.161 MB / 361.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007296/0.1265, allocations: 39.88 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.128, allocations: 0.7744 MB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002429/0.1305, allocations: 1.326 MB / 363.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009266/0.1314, allocations: 499 kB / 364.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00254/0.1339, allocations: 2.531 MB / 366.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001224/0.1352, allocations: 1.149 MB / 368.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007737/0.136, allocations: 0.7588 MB / 368.8 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1371, allocations: 1.102 MB / 369.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002148/0.1373, allocations: 136 kB / 370.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.1387, allocations: 0.8775 MB / 371 MB, free: 192 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1704/0.3091, allocations: 0.9948 MB / 371.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002482/0.3116, allocations: 1.192 MB / 373.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006329/0.318, allocations: 3.965 MB / 377.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.318, allocations: 0 / 377.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.318, allocations: 1.188 kB / 377.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001622/0.3182, allocations: 0 / 377.1 MB, free: 11.43 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.008717/0.3269, allocations: 2.885 MB / 380 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.327, allocations: 10.28 kB / 380 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005766/0.3327, allocations: 1.637 MB / 381.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003312/0.3361, allocations: 1.328 MB / 383 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.3362, allocations: 118 kB / 383.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004488/0.3367, allocations: 163.3 kB / 383.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.3469, allocations: 6.363 MB / 389.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.496e-05/0.347, allocations: 27.12 kB / 389.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/0.3472, allocations: 84.28 kB / 389.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002448/0.3497, allocations: 1.435 MB / 391.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008372/0.358, allocations: 5.686 MB / 396.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02828/0.3863, allocations: 26.2 MB / 423 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/0.391, allocations: 2.26 MB / 425.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.3925, allocations: 1.026 MB / 426.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.052e-05/0.3926, allocations: 14.8 kB / 426.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.3926, allocations: 50.31 kB / 426.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 4.087e-06/0.3926, allocations: 0 / 426.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01996/0.4126, allocations: 8.579 MB / 435 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.4127, allocations: 139.7 kB / 435.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004197/0.4169, allocations: 2.819 MB / 437.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002336/0.4171, allocations: 41.7 kB / 438 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/0.4185, allocations: 2.067 MB / 440 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005448/0.4191, allocations: 437 kB / 440.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001182/0.4203, allocations: 0.8808 MB / 441.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4204, allocations: 301.1 kB / 441.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002196/0.4226, allocations: 1.422 MB / 443 MB, free: 6.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004234/0.4268, allocations: 4.247 MB / 447.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.4341, allocations: 6.141 MB / 453.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-05/0.4342, allocations: 28 kB / 453.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01478/0.449, allocations: 6.109 MB / 459.6 MB, free: 3.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4492, allocations: 48 kB / 459.6 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/0.4493, allocations: 100 kB / 459.7 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.4517, allocations: 0.7928 MB / 460.5 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/0.4549, allocations: 0.9981 MB / 461.5 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006134/0.4611, allocations: 4.463 MB / 466 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/0.465, allocations: 255.5 kB / 466.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008817/0.4659, allocations: 277.1 kB / 466.5 MB, free: 12.26 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 (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.003079/0.469, allocations: 1.372 MB / 467.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006301/0.4696, allocations: 233 kB / 468.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.4736, allocations: 1.857 MB / 469.9 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.818e-05/0.4736, allocations: 12 kB / 470 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.4736, allocations: 4 kB / 470 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4736, allocations: 7.922 kB / 470 MB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008871/0.4825, allocations: 4.796 MB / 474.8 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4825, allocations: 4 kB / 474.8 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.4831, allocations: 127.9 kB / 474.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/0.4851, allocations: 0.6483 MB / 475.5 MB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.602e-05/0.4852, allocations: 20.38 kB / 475.6 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004801/0.49, allocations: 3.961 MB / 479.5 MB, free: 15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.49, allocations: 0 / 479.5 MB, free: 15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005642/0.4956, allocations: 3.685 MB / 483.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006642/0.4963, allocations: 290 kB / 483.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.4966, allocations: 12 kB / 483.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008383/0.4974, allocations: 67.97 kB / 483.6 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4976, allocations: 59.86 kB / 483.6 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/0.4977, allocations: 26.97 kB / 483.7 MB, free: 10.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002717/0.5004, allocations: 1.758 MB / 485.4 MB, free: 9.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5004, allocations: 0 / 485.4 MB, free: 9.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003893/0.5043, allocations: 0.6406 MB / 486.1 MB, free: 8.414 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 (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.000429/0.5048, allocations: 150.7 kB / 486.2 MB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00629/0.5111, allocations: 3.422 MB / 489.6 MB, free: 4.848 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/0.5111, allocations: 3.938 kB / 489.6 MB, free: 4.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.5126, allocations: 0.9242 MB / 490.6 MB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.5147, allocations: 259.7 kB / 490.8 MB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009396/0.5241, allocations: 5.423 MB / 496.2 MB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/0.5263, allocations: 2.192 MB / 498.4 MB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003054/0.5294, allocations: 1.396 MB / 499.8 MB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.5298, allocations: 163.4 kB / 500 MB, free: 10.41 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5298, allocations: 4 kB / 500 MB, free: 10.4 MB / 414.1 MB Notification: Performance of Templates: time 0.04052/0.5703, allocations: 19.23 MB / 0.507 GB, free: 7.352 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 -s cvode -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches