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.001387/0.001387, allocations: 110.4 kB / 17.16 MB, free: 6.082 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.001287/0.001287, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.334/1.334, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 46.83 kB / 300.6 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09846, allocations: 49.45 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.0149/0.1134, allocations: 14.08 MB / 364.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008387/0.1218, allocations: 4.362 MB / 368.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.124, allocations: 59.81 kB / 368.6 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.126, allocations: 0.7438 MB / 369.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.1301, allocations: 1.227 MB / 370.5 MB, free: 68 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1689/0.299, allocations: 459.6 kB / 371 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005168/0.3043, allocations: 3.429 MB / 374.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.3064, allocations: 1.139 MB / 375.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.3079, allocations: 0.6658 MB / 376.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.3099, allocations: 1.196 MB / 377.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003812/0.3103, allocations: 94.12 kB / 377.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.3123, allocations: 0.9068 MB / 378.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001254/0.3136, allocations: 0.9855 MB / 379.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.3148, allocations: 1.167 MB / 380.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003365/0.3182, allocations: 3.016 MB / 383.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3182, allocations: 1.438 kB / 383.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3182, allocations: 0 / 383.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.911e-05/0.3183, allocations: 0 / 383.6 MB, free: 8.117 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.006454/0.3248, allocations: 2.877 MB / 386.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.3249, allocations: 8.469 kB / 386.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005712/0.3306, allocations: 1.64 MB / 388.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.3334, allocations: 1.319 MB / 389.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-05/0.3335, allocations: 119.9 kB / 389.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003494/0.3338, allocations: 161.1 kB / 389.7 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009138/0.343, allocations: 6.361 MB / 396.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.856e-05/0.3431, allocations: 27.47 kB / 396.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.3433, allocations: 82.08 kB / 396.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002201/0.3456, allocations: 1.44 MB / 397.6 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01073/0.3563, allocations: 5.669 MB / 403.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03002/0.3864, allocations: 26.3 MB / 429.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004191/0.3906, allocations: 2.269 MB / 431.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.3919, allocations: 1.019 MB / 432.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.301e-05/0.392, allocations: 14.59 kB / 432.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.392, allocations: 40.17 kB / 432.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.016e-06/0.392, allocations: 4 kB / 432.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.0208/0.4128, allocations: 8.578 MB / 441.5 MB, free: 3.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.4129, allocations: 140.5 kB / 441.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004282/0.4172, allocations: 2.827 MB / 444.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002614/0.4175, allocations: 37.7 kB / 444.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.419, allocations: 2.068 MB / 446.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005311/0.4196, allocations: 438.6 kB / 447 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/0.4207, allocations: 0.8873 MB / 447.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4209, allocations: 301.1 kB / 448.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/0.4231, allocations: 1.414 MB / 449.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/0.4272, allocations: 4.249 MB / 453.8 MB, free: 5.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006887/0.4341, allocations: 6.134 MB / 460 MB, free: 14.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.426e-05/0.4342, allocations: 28 kB / 460 MB, free: 14.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01231/0.4465, allocations: 6.108 MB / 466.1 MB, free: 8.125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.4467, allocations: 51.98 kB / 466.2 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/0.4469, allocations: 100.9 kB / 466.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.4493, allocations: 0.7928 MB / 467 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.4527, allocations: 0.9902 MB / 468 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005741/0.4585, allocations: 4.151 MB / 472.2 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/0.4622, allocations: 255.6 kB / 472.4 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006819/0.4629, allocations: 278.6 kB / 472.7 MB, free: 1.391 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.002942/0.4658, allocations: 1.378 MB / 474.1 MB, free: 4 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006218/0.4665, allocations: 233.2 kB / 474.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004129/0.4706, allocations: 1.857 MB / 476.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/0.4707, allocations: 12 kB / 476.2 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.4707, allocations: 8 kB / 476.2 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4707, allocations: 3.984 kB / 476.2 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.4814, allocations: 4.805 MB / 481 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/0.4815, allocations: 0 / 481 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.4821, allocations: 135.8 kB / 481.1 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/0.4842, allocations: 0.6405 MB / 481.8 MB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.4843, allocations: 24 kB / 481.8 MB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004999/0.4893, allocations: 3.689 MB / 485.5 MB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.4894, allocations: 4.922 kB / 485.5 MB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006096/0.4955, allocations: 3.688 MB / 489.2 MB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008197/0.4963, allocations: 289.9 kB / 489.5 MB, free: 364 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000623/0.497, allocations: 18.86 kB / 489.5 MB, free: 348 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.4982, allocations: 63.91 kB / 489.5 MB, free: 284 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.4984, allocations: 55.86 kB / 489.6 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.908e-05/0.4985, allocations: 35.94 kB / 489.6 MB, free: 192 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00316/0.5017, allocations: 1.75 MB / 491.4 MB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.5017, allocations: 4 kB / 491.4 MB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003735/0.5055, allocations: 0.6522 MB / 492 MB, free: 13.77 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.0003735/0.5058, allocations: 149.5 kB / 492.2 MB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00522/0.5111, allocations: 3.415 MB / 495.6 MB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5111, allocations: 0 / 495.6 MB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.5123, allocations: 0.9292 MB / 496.5 MB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.5142, allocations: 244.7 kB / 496.8 MB, free: 9.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.5251, allocations: 6.897 MB / 0.4919 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/0.5272, allocations: 2.188 MB / 0.494 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006442/0.5279, allocations: 191.4 kB / 0.4942 GB, free: 15.68 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5279, allocations: 0 / 0.4942 GB, free: 15.68 MB / 430.1 MB Notification: Performance of Templates: time 0.2425/0.7704, allocations: 47.06 MB / 0.5401 GB, free: 147.7 MB / 446.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 -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