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.001243/0.001243, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001342, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001116, allocations: 59.44 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08457, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007694/0.09228, allocations: 7.082 MB / 366 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005631/0.09795, allocations: 3.181 MB / 369.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007708/0.09876, allocations: 31.94 kB / 369.2 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001612/0.1004, allocations: 0.782 MB / 370 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002733/0.1032, allocations: 1.291 MB / 371.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1042, allocations: 0.4912 MB / 371.8 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1782/0.2824, allocations: 2.544 MB / 374.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.2848, allocations: 1.162 MB / 375.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.286, allocations: 0.7464 MB / 376.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001594/0.2876, allocations: 1.104 MB / 377.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003594/0.288, allocations: 135 kB / 377.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.2898, allocations: 0.8643 MB / 378.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.2908, allocations: 0.9884 MB / 379.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009675/0.2918, allocations: 1.173 MB / 380.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004706/0.2965, allocations: 3.922 MB / 384.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2966, allocations: 0 / 384.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2966, allocations: 1.156 kB / 384.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.385e-05/0.2967, allocations: 3 kB / 384.4 MB, free: 8.418 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.00534/0.302, allocations: 2.865 MB / 387.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3021, allocations: 8.906 kB / 387.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00564/0.3077, allocations: 1.642 MB / 388.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.3106, allocations: 1.301 MB / 390.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.995e-05/0.3107, allocations: 115.4 kB / 390.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000333/0.3111, allocations: 158.5 kB / 390.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008128/0.3192, allocations: 6.367 MB / 396.8 MB, free: 1.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.904e-05/0.3193, allocations: 32.16 kB / 396.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002257/0.3195, allocations: 77.7 kB / 397 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002047/0.3216, allocations: 1.435 MB / 398.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009412/0.331, allocations: 5.676 MB / 404.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/0.3616, allocations: 26.19 MB / 430.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004203/0.3658, allocations: 2.259 MB / 432.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.3671, allocations: 1.029 MB / 433.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.289e-05/0.3671, allocations: 11.52 kB / 433.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3672, allocations: 42.77 kB / 433.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.276e-06/0.3672, allocations: 3.938 kB / 433.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01981/0.387, allocations: 8.573 MB / 442.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/0.3871, allocations: 148.5 kB / 442.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003546/0.3907, allocations: 2.811 MB / 445.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.3908, allocations: 40.83 kB / 445.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.392, allocations: 2.066 MB / 447.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.3924, allocations: 438.7 kB / 447.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/0.3934, allocations: 0.8829 MB / 448.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.3935, allocations: 301.1 kB / 448.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.3954, allocations: 1.418 MB / 450.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003657/0.3991, allocations: 4.245 MB / 454.5 MB, free: 6.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006473/0.4056, allocations: 6.139 MB / 460.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.424e-05/0.4056, allocations: 32 kB / 460.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01008/0.4157, allocations: 6.111 MB / 466.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.4158, allocations: 48 kB / 466.8 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.832e-05/0.4159, allocations: 100 kB / 466.9 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002196/0.4181, allocations: 0.7939 MB / 467.7 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00279/0.4209, allocations: 0.9903 MB / 468.7 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00563/0.4265, allocations: 4.478 MB / 473.2 MB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003235/0.4298, allocations: 247.5 kB / 473.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004444/0.4303, allocations: 279.3 kB / 473.7 MB, free: 2.098 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.002082/0.4324, allocations: 1.375 MB / 475.1 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004208/0.4328, allocations: 229 kB / 475.3 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/0.4365, allocations: 1.848 MB / 477.1 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.4365, allocations: 12 kB / 477.2 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.4365, allocations: 8 kB / 477.2 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.4365, allocations: 7.922 kB / 477.2 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008858/0.4454, allocations: 4.795 MB / 482 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.4455, allocations: 384 / 482 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008972/0.4464, allocations: 131.8 kB / 482.1 MB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/0.4484, allocations: 0.6483 MB / 482.7 MB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.4485, allocations: 26.72 kB / 482.8 MB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005048/0.4536, allocations: 3.955 MB / 486.7 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4536, allocations: 0 / 486.7 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005836/0.4594, allocations: 3.692 MB / 490.4 MB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008672/0.4603, allocations: 290 kB / 490.7 MB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.4606, allocations: 19.98 kB / 490.7 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008357/0.4614, allocations: 55.92 kB / 490.8 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.4616, allocations: 59.86 kB / 490.8 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.642e-05/0.4617, allocations: 28.06 kB / 490.9 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002963/0.4647, allocations: 1.755 MB / 492.6 MB, free: 14.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4647, allocations: 4 kB / 492.6 MB, free: 14.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003824/0.4685, allocations: 0.6367 MB / 493.3 MB, free: 14.25 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.0004457/0.469, allocations: 134.9 kB / 493.4 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005548/0.4746, allocations: 3.421 MB / 496.8 MB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4746, allocations: 0 / 496.8 MB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.4759, allocations: 0.9316 MB / 497.7 MB, free: 9.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.4777, allocations: 254.6 kB / 498 MB, free: 9.512 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00875/0.4865, allocations: 5.422 MB / 0.4916 GB, free: 4.051 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.4886, allocations: 2.188 MB / 0.4938 GB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002843/0.4914, allocations: 1.396 MB / 0.4951 GB, free: 432 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/0.4919, allocations: 163.4 kB / 0.4953 GB, free: 272 kB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4919, allocations: 0 / 0.4953 GB, free: 272 kB / 414.1 MB Notification: Performance of Templates: time 0.03908/0.531, allocations: 19.16 MB / 0.514 GB, free: 13.28 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 -s cvode -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