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.001278/0.001279, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.00115/0.001151, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3126, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008161/0.3208, allocations: 7.11 MB / 408.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006071/0.3269, allocations: 3.15 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.3282, allocations: 31.94 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.33, allocations: 0.7781 MB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003382/0.3335, allocations: 1.327 MB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.3347, allocations: 495 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003517/0.3382, allocations: 2.539 MB / 416.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002209/0.3405, allocations: 1.149 MB / 418 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.342, allocations: 0.7627 MB / 418.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.344, allocations: 1.102 MB / 419.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005418/0.3445, allocations: 136 kB / 420 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.3465, allocations: 0.8892 MB / 420.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001273/0.3478, allocations: 0.9972 MB / 421.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001922/0.3498, allocations: 1.192 MB / 423.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005258/0.355, allocations: 3.963 MB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3551, allocations: 0 / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3551, allocations: 0 / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001552/0.3552, allocations: 0 / 427 MB, free: 15.16 MB / 350.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.007424/0.3627, allocations: 2.89 MB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3627, allocations: 8.031 kB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006198/0.3689, allocations: 1.643 MB / 431.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.3719, allocations: 1.339 MB / 432.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.3721, allocations: 114.9 kB / 433 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004783/0.3726, allocations: 151.8 kB / 433.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.3826, allocations: 6.367 MB / 439.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-05/0.3827, allocations: 35.67 kB / 439.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.383, allocations: 79.89 kB / 439.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002359/0.3853, allocations: 1.429 MB / 441.1 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.3954, allocations: 5.677 MB / 446.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03124/0.4267, allocations: 26.2 MB / 472.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004346/0.4311, allocations: 2.262 MB / 475.2 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/0.4325, allocations: 1.019 MB / 476.2 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.152e-05/0.4326, allocations: 15.98 kB / 476.2 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.4326, allocations: 46.5 kB / 476.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.537e-06/0.4326, allocations: 0 / 476.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02298/0.4556, allocations: 8.58 MB / 484.9 MB, free: 3.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.4557, allocations: 136.5 kB / 485 MB, free: 3.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004592/0.4603, allocations: 2.819 MB / 487.8 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000237/0.4606, allocations: 41.7 kB / 487.9 MB, free: 472 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.4621, allocations: 2.071 MB / 489.9 MB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005608/0.4627, allocations: 446.6 kB / 490.4 MB, free: 13.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.4638, allocations: 0.8808 MB / 491.3 MB, free: 13.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.4639, allocations: 301.1 kB / 491.5 MB, free: 12.72 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.4659, allocations: 1.414 MB / 493 MB, free: 11.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004056/0.47, allocations: 4.25 MB / 497.2 MB, free: 5.621 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00706/0.4771, allocations: 6.135 MB / 0.4915 GB, free: 14.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/0.4772, allocations: 31.94 kB / 0.4916 GB, free: 14.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01304/0.4903, allocations: 6.11 MB / 0.4975 GB, free: 7.922 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.4904, allocations: 51.28 kB / 0.4976 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/0.4906, allocations: 100 kB / 0.4977 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.4931, allocations: 0.8007 MB / 0.4985 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.4964, allocations: 0.9942 MB / 0.4994 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006172/0.5026, allocations: 4.475 MB / 0.5038 GB, free: 1.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003266/0.5059, allocations: 243.5 kB / 0.504 GB, free: 1.129 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007693/0.5067, allocations: 276 kB / 0.5043 GB, free: 0.8594 MB / 430.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.002677/0.5094, allocations: 1.372 MB / 0.5056 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000552/0.5099, allocations: 229 kB / 0.5059 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.5141, allocations: 1.845 MB / 0.5077 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.48e-05/0.5142, allocations: 23.92 kB / 0.5077 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.5142, allocations: 3.984 kB / 0.5077 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.5142, allocations: 7.984 kB / 0.5077 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009634/0.5238, allocations: 4.781 MB / 0.5124 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.5239, allocations: 8.062 kB / 0.5124 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/0.5245, allocations: 139.8 kB / 0.5125 GB, free: 8.348 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/0.5266, allocations: 0.6405 MB / 0.5131 GB, free: 7.703 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.5267, allocations: 20 kB / 0.5132 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004967/0.5317, allocations: 3.949 MB / 0.517 GB, free: 3.594 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.5317, allocations: 3.938 kB / 0.517 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005934/0.5377, allocations: 3.689 MB / 0.5206 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007695/0.5385, allocations: 293.9 kB / 0.5209 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/0.539, allocations: 19.94 kB / 0.5209 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.5403, allocations: 63.91 kB / 0.521 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.5405, allocations: 59.81 kB / 0.521 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.981e-05/0.5406, allocations: 31.98 kB / 0.5211 GB, free: 15.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003204/0.5438, allocations: 1.758 MB / 0.5228 GB, free: 13.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5438, allocations: 0 / 0.5228 GB, free: 13.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003415/0.5473, allocations: 0.6445 MB / 0.5234 GB, free: 12.98 MB / 462.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.0003639/0.5476, allocations: 147.8 kB / 0.5236 GB, free: 12.83 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.5531, allocations: 3.431 MB / 0.5269 GB, free: 9.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5531, allocations: 0 / 0.5269 GB, free: 9.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.5544, allocations: 0.9284 MB / 0.5278 GB, free: 8.469 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/0.5565, allocations: 257.3 kB / 0.5281 GB, free: 8.215 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/0.5673, allocations: 5.704 MB / 0.5336 GB, free: 2.457 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002768/0.5701, allocations: 2.176 MB / 0.5357 GB, free: 252 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006714/0.5708, allocations: 199.3 kB / 0.5359 GB, free: 52 kB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5708, allocations: 0 / 0.5359 GB, free: 52 kB / 462.1 MB Notification: Performance of Templates: time 0.2787/0.8495, allocations: 47.54 MB / 0.5824 GB, free: 92.74 MB / 462.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