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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 179.5 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008956, allocations: 94.75 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002445, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.213, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3168, allocations: 91.84 MB / 493.3 MB, free: 4.594 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.3171, allocations: 87.95 kB / 493.4 MB, free: 4.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3238/0.6408, allocations: 58.38 MB / 0.5389 GB, free: 74.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6409, allocations: 0 / 0.5389 GB, free: 74.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.128e-05/0.6409, allocations: 44 kB / 0.5389 GB, free: 74.42 MB / 378.7 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.004534/0.6455, allocations: 2.653 MB / 0.5415 GB, free: 71.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.6455, allocations: 8.031 kB / 0.5415 GB, free: 71.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007306/0.6529, allocations: 1.966 MB / 0.5434 GB, free: 69.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007598/0.6605, allocations: 3.162 MB / 0.5465 GB, free: 66.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.6606, allocations: 180.6 kB / 0.5467 GB, free: 66.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005337/0.6612, allocations: 235.9 kB / 0.5469 GB, free: 66.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008702/0.6699, allocations: 6.814 MB / 0.5536 GB, free: 58.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.461e-05/0.67, allocations: 43.53 kB / 0.5536 GB, free: 58.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003131/0.6703, allocations: 123.9 kB / 0.5537 GB, free: 58.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007195/0.671, allocations: 0.7189 MB / 0.5544 GB, free: 57.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008832/0.6799, allocations: 5.833 MB / 0.5601 GB, free: 51.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02709/0.707, allocations: 33.38 MB / 0.5927 GB, free: 17.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003773/0.7108, allocations: 2.294 MB / 0.595 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-05/0.7109, allocations: 11.98 kB / 0.595 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.7109, allocations: 46.56 kB / 0.595 GB, free: 14.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.437e-06/0.711, allocations: 0 / 0.595 GB, free: 14.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01694/0.7279, allocations: 8.676 MB / 0.6035 GB, free: 5.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.728, allocations: 140.5 kB / 0.6036 GB, free: 5.684 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/0.7313, allocations: 2.541 MB / 0.6061 GB, free: 3.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.7315, allocations: 37.7 kB / 0.6061 GB, free: 3.086 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008604/0.7323, allocations: 2.079 MB / 0.6082 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003198/0.7326, allocations: 430.7 kB / 0.6086 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.7328, allocations: 88 kB / 0.6087 GB, free: 476 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.733, allocations: 499.6 kB / 0.6091 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.7352, allocations: 1.414 MB / 0.6105 GB, free: 14.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003967/0.7392, allocations: 4.212 MB / 0.6146 GB, free: 8.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003455/0.7426, allocations: 2.411 MB / 0.617 GB, free: 6.496 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-05/0.7427, allocations: 28 kB / 0.617 GB, free: 6.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01195/0.7546, allocations: 6.087 MB / 0.623 GB, free: 384 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.996e-05/0.7548, allocations: 48.19 kB / 0.623 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.7549, allocations: 108.3 kB / 0.6231 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002279/0.7572, allocations: 0.8075 MB / 0.6239 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003157/0.7603, allocations: 0.9981 MB / 0.6249 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005628/0.766, allocations: 4.196 MB / 0.629 GB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/0.7703, allocations: 283.6 kB / 0.6292 GB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008265/0.7712, allocations: 272 kB / 0.6295 GB, free: 9.539 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * 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 (531): * Single equations (assignments): 527 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002679/0.7739, allocations: 1.375 MB / 0.6308 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004848/0.7744, allocations: 233 kB / 0.6311 GB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/0.7783, allocations: 1.849 MB / 0.6329 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.903e-05/0.7784, allocations: 12 kB / 0.6329 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.7784, allocations: 4 kB / 0.6329 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.7784, allocations: 7.984 kB / 0.6329 GB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009658/0.7881, allocations: 4.813 MB / 0.6376 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.7881, allocations: 0 / 0.6376 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006773/0.7888, allocations: 139.9 kB / 0.6377 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.7909, allocations: 0.6443 MB / 0.6384 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-05/0.791, allocations: 12 kB / 0.6384 GB, free: 356 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00496/0.796, allocations: 3.753 MB / 0.642 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.796, allocations: 0 / 0.642 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006029/0.802, allocations: 3.775 MB / 0.6457 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008635/0.8029, allocations: 297.9 kB / 0.646 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.8032, allocations: 20 kB / 0.646 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/0.8041, allocations: 67.89 kB / 0.6461 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.8043, allocations: 63.89 kB / 0.6461 GB, free: 8.164 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-05/0.8043, allocations: 27.98 kB / 0.6462 GB, free: 8.137 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003031/0.8074, allocations: 1.77 MB / 0.6479 GB, free: 6.359 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8074, allocations: 0 / 0.6479 GB, free: 6.359 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003243/0.8106, allocations: 0.664 MB / 0.6485 GB, free: 5.695 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003826/0.811, allocations: 147 kB / 0.6487 GB, free: 5.539 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005795/0.8168, allocations: 3.412 MB / 0.652 GB, free: 2.133 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.8169, allocations: 0 / 0.652 GB, free: 2.133 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.8181, allocations: 0.9244 MB / 0.6529 GB, free: 1.195 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.8194, allocations: 242.4 kB / 0.6532 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009935/0.8294, allocations: 6.398 MB / 0.6594 GB, free: 10.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.8316, allocations: 2.228 MB / 0.6616 GB, free: 8.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003432/0.8351, allocations: 1.4 MB / 0.6629 GB, free: 6.844 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.8355, allocations: 163.4 kB / 0.6631 GB, free: 6.684 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/0.8355, allocations: 0 / 0.6631 GB, free: 6.684 MB / 442.7 MB Notification: Performance of Templates: time 0.2087/1.044, allocations: 21.66 MB / 0.6843 GB, free: 127.5 MB / 442.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches