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.001442/0.001442, allocations: 106.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001872/0.001872, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 60.17 kB / 306.3 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09814, allocations: 50.53 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.0135/0.1117, allocations: 14.01 MB / 370.8 MB, free: 464 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1684/0.2801, allocations: 4.352 MB / 375.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.2822, allocations: 54.78 kB / 375.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.2844, allocations: 0.7566 MB / 376 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003633/0.288, allocations: 1.198 MB / 377.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.2892, allocations: 466.2 kB / 377.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00525/0.2945, allocations: 3.46 MB / 381.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.2967, allocations: 1.137 MB / 382.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.2981, allocations: 0.6572 MB / 382.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.3, allocations: 1.187 MB / 384.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005265/0.3005, allocations: 94.56 kB / 384.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00195/0.3025, allocations: 0.8827 MB / 385 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.3037, allocations: 0.9679 MB / 386 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.305, allocations: 1.16 MB / 387.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003935/0.309, allocations: 3.724 MB / 390.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.309, allocations: 0 / 390.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.309, allocations: 0 / 390.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.178e-05/0.3091, allocations: 5.281 kB / 390.9 MB, free: 3.023 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.004594/0.3137, allocations: 2.86 MB / 393.7 MB, free: 1.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3137, allocations: 10.16 kB / 393.8 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005671/0.3194, allocations: 1.638 MB / 395.4 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002274/0.3217, allocations: 1.292 MB / 396.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.543e-05/0.3218, allocations: 116.6 kB / 396.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002908/0.3221, allocations: 157.4 kB / 397 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008623/0.3307, allocations: 6.356 MB / 403.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.957e-05/0.3308, allocations: 43.64 kB / 403.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.3311, allocations: 74.72 kB / 403.4 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002315/0.3334, allocations: 1.439 MB / 404.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009385/0.3428, allocations: 5.677 MB / 410.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0274/0.3702, allocations: 26.29 MB / 436.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004218/0.3745, allocations: 2.266 MB / 439.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.3757, allocations: 1.021 MB / 440.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.3758, allocations: 10.58 kB / 440.1 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.3758, allocations: 38.56 kB / 440.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 2.474e-06/0.3758, allocations: 4 kB / 440.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.0212/0.397, allocations: 8.579 MB / 448.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.3971, allocations: 136.5 kB / 448.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.4007, allocations: 2.818 MB / 451.7 MB, free: 8.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.4009, allocations: 41.7 kB / 451.7 MB, free: 8.289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.4021, allocations: 2.069 MB / 453.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.4025, allocations: 433.8 kB / 454.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.4036, allocations: 0.8915 MB / 455.1 MB, free: 4.902 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.12e-05/0.4036, allocations: 301.1 kB / 455.4 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.4056, allocations: 1.418 MB / 456.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003561/0.4092, allocations: 4.25 MB / 461.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006095/0.4153, allocations: 6.128 MB / 467.2 MB, free: 5.961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.426e-05/0.4154, allocations: 28 kB / 467.2 MB, free: 5.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009832/0.4252, allocations: 6.101 MB / 473.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.826e-05/0.4253, allocations: 48.97 kB / 473.4 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.741e-05/0.4254, allocations: 100 kB / 473.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.4276, allocations: 0.7967 MB / 474.3 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/0.4303, allocations: 0.9942 MB / 475.3 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005343/0.4356, allocations: 4.167 MB / 479.4 MB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.4384, allocations: 247.6 kB / 479.7 MB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/0.4388, allocations: 272 kB / 480 MB, free: 9.074 MB / 398.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.00201/0.4408, allocations: 1.375 MB / 481.3 MB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.4411, allocations: 229 kB / 481.6 MB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0037/0.4448, allocations: 1.857 MB / 483.4 MB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.4449, allocations: 12 kB / 483.4 MB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.4449, allocations: 4 kB / 483.4 MB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.4449, allocations: 7.984 kB / 483.4 MB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008155/0.4531, allocations: 4.818 MB / 488.3 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.4531, allocations: 0 / 488.3 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006093/0.4537, allocations: 139.8 kB / 488.4 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/0.4558, allocations: 0.6405 MB / 489 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.002e-05/0.4558, allocations: 20 kB / 489 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004486/0.4603, allocations: 3.697 MB / 492.7 MB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4603, allocations: 4.062 kB / 492.7 MB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005477/0.4658, allocations: 3.695 MB / 496.4 MB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004884/0.4663, allocations: 290 kB / 496.7 MB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.4666, allocations: 16 kB / 496.7 MB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008481/0.4674, allocations: 61.86 kB / 496.8 MB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.4676, allocations: 55.92 kB / 496.9 MB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.4677, allocations: 24 kB / 496.9 MB, free: 7.879 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002436/0.4701, allocations: 1.754 MB / 498.6 MB, free: 6.117 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4701, allocations: 0 / 498.6 MB, free: 6.117 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003024/0.4732, allocations: 0.6347 MB / 499.3 MB, free: 5.484 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.0002984/0.4735, allocations: 150.6 kB / 499.4 MB, free: 5.332 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004616/0.4781, allocations: 3.406 MB / 0.491 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4781, allocations: 4 kB / 0.491 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4793, allocations: 0.9362 MB / 0.492 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.4807, allocations: 238.9 kB / 0.4922 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00816/0.4889, allocations: 6.606 MB / 0.4986 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.4909, allocations: 2.181 MB / 0.5008 GB, free: 7.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003026/0.4939, allocations: 1.403 MB / 0.5021 GB, free: 6.465 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/0.4943, allocations: 163.4 kB / 0.5023 GB, free: 6.305 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4943, allocations: 0 / 0.5023 GB, free: 6.305 MB / 430.1 MB Notification: Performance of Templates: time 0.03869/0.533, allocations: 22.02 MB / 0.5238 GB, free: 400 kB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/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