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.001105/0.001105, allocations: 115.5 kB / 17.69 MB, free: 5.426 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.001147/0.001147, allocations: 192 kB / 18.63 MB, free: 4.492 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.285/1.285, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000946/0.000946, allocations: 51.34 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08116/0.08212, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007957/0.09011, allocations: 7.091 MB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005664/0.0958, allocations: 3.161 MB / 361.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005178/0.09634, allocations: 31.94 kB / 361.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.09788, allocations: 0.7899 MB / 362.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002474/0.1004, allocations: 1.312 MB / 363.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008784/0.1013, allocations: 0.4951 MB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002822/0.1041, allocations: 2.535 MB / 366.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.1053, allocations: 1.153 MB / 368.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008983/0.1062, allocations: 0.7627 MB / 368.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.1075, allocations: 1.102 MB / 370 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002583/0.1077, allocations: 132 kB / 370.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.1091, allocations: 0.8736 MB / 371 MB, free: 172 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1553/0.2644, allocations: 0.9961 MB / 372 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.2656, allocations: 1.194 MB / 373.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004429/0.2701, allocations: 3.968 MB / 377.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2701, allocations: 0 / 377.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2701, allocations: 1.719 kB / 377.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.491e-05/0.2702, allocations: 0 / 377.1 MB, free: 11.37 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.004937/0.2751, allocations: 2.875 MB / 380 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2752, allocations: 13.39 kB / 380 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005437/0.2806, allocations: 1.638 MB / 381.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.2833, allocations: 1.335 MB / 383 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-05/0.2834, allocations: 117.8 kB / 383.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000328/0.2837, allocations: 162.6 kB / 383.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007545/0.2913, allocations: 6.371 MB / 389.6 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/0.2913, allocations: 27.58 kB / 389.6 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.2916, allocations: 75.91 kB / 389.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/0.2936, allocations: 1.436 MB / 391.2 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007641/0.3013, allocations: 5.675 MB / 396.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02586/0.3271, allocations: 26.21 MB / 423 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003975/0.3311, allocations: 2.256 MB / 425.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.3324, allocations: 1.024 MB / 426.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.3324, allocations: 13.03 kB / 426.3 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3324, allocations: 39.69 kB / 426.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.316e-06/0.3325, allocations: 0 / 426.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01926/0.3517, allocations: 8.585 MB / 435 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.3518, allocations: 144.5 kB / 435.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.3552, allocations: 2.815 MB / 437.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.263e-05/0.3553, allocations: 44.28 kB / 438 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.3565, allocations: 2.072 MB / 440 MB, free: 9.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/0.3569, allocations: 435.5 kB / 440.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.3579, allocations: 0.8837 MB / 441.3 MB, free: 8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.358, allocations: 305.1 kB / 441.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.3599, allocations: 1.414 MB / 443 MB, free: 6.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003541/0.3635, allocations: 4.249 MB / 447.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005746/0.3692, allocations: 6.137 MB / 453.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.299e-05/0.3693, allocations: 28 kB / 453.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009631/0.3789, allocations: 6.106 MB / 459.6 MB, free: 3.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.253e-05/0.379, allocations: 50.5 kB / 459.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.596e-05/0.3791, allocations: 100 kB / 459.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/0.3813, allocations: 0.805 MB / 460.5 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002602/0.3839, allocations: 0.9825 MB / 461.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00523/0.3891, allocations: 4.471 MB / 466 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002858/0.392, allocations: 247.5 kB / 466.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003507/0.3924, allocations: 280 kB / 466.5 MB, free: 12.24 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.001884/0.3943, allocations: 1.375 MB / 467.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.3946, allocations: 229 kB / 468.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003525/0.3981, allocations: 1.852 MB / 469.9 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.3982, allocations: 18.11 kB / 470 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3982, allocations: 3.938 kB / 470 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.3982, allocations: 11.92 kB / 470 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007905/0.4061, allocations: 4.786 MB / 474.8 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.4061, allocations: 4 kB / 474.8 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.4067, allocations: 135.7 kB / 474.9 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001914/0.4087, allocations: 0.6483 MB / 475.5 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-05/0.4087, allocations: 20 kB / 475.6 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/0.4135, allocations: 3.951 MB / 479.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.4135, allocations: 8.797 kB / 479.5 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005546/0.4191, allocations: 3.68 MB / 483.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007124/0.4198, allocations: 294 kB / 483.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4201, allocations: 12 kB / 483.5 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000836/0.4209, allocations: 63.91 kB / 483.6 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.4211, allocations: 67.78 kB / 483.6 MB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.44e-05/0.4212, allocations: 32.27 kB / 483.7 MB, free: 10.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002683/0.4239, allocations: 1.75 MB / 485.4 MB, free: 9.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4239, allocations: 0 / 485.4 MB, free: 9.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003188/0.4271, allocations: 0.6523 MB / 486.1 MB, free: 8.387 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.0003258/0.4274, allocations: 155.8 kB / 486.2 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004795/0.4322, allocations: 3.417 MB / 489.6 MB, free: 4.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.4322, allocations: 4.062 kB / 489.6 MB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.4334, allocations: 0.9199 MB / 490.6 MB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.435, allocations: 257.5 kB / 490.8 MB, free: 3.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008418/0.4434, allocations: 5.424 MB / 496.2 MB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002191/0.4456, allocations: 2.184 MB / 498.4 MB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002838/0.4485, allocations: 1.403 MB / 499.8 MB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.4489, allocations: 163.4 kB / 500 MB, free: 10.39 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4489, allocations: 0 / 500 MB, free: 10.39 MB / 414.1 MB Notification: Performance of Templates: time 0.03901/0.4879, allocations: 19.23 MB / 0.507 GB, free: 7.332 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 gbode -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