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.001007/0.001007, allocations: 177.1 kB / 17.4 MB, free: 4.301 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.314/1.314, allocations: 223.3 MB / 241.4 MB, free: 11.69 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.0007859/0.0007859, allocations: 95.31 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003409, allocations: 11.94 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2578, allocations: 50.41 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.3688, allocations: 91.96 MB / 494.7 MB, free: 4.355 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.3691, allocations: 91.89 kB / 494.8 MB, free: 4.266 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3376/0.7066, allocations: 57.56 MB / 0.5394 GB, free: 74.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.7067, allocations: 0 / 0.5394 GB, free: 74.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001221/0.7068, allocations: 44 kB / 0.5394 GB, free: 74.91 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.007464/0.7143, allocations: 2.567 MB / 0.542 GB, free: 72.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.7144, allocations: 12.03 kB / 0.542 GB, free: 72.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007792/0.7222, allocations: 1.936 MB / 0.5439 GB, free: 70.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004574/0.7268, allocations: 2.078 MB / 0.5459 GB, free: 68.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.727, allocations: 177 kB / 0.5461 GB, free: 68.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/0.728, allocations: 232.3 kB / 0.5463 GB, free: 67.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009958/0.738, allocations: 6.799 MB / 0.5529 GB, free: 60.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-05/0.7381, allocations: 47.72 kB / 0.553 GB, free: 60.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003136/0.7385, allocations: 127.8 kB / 0.5531 GB, free: 60.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000761/0.7392, allocations: 0.715 MB / 0.5538 GB, free: 59.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009005/0.7482, allocations: 5.805 MB / 0.5595 GB, free: 53.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02867/0.777, allocations: 33.38 MB / 0.592 GB, free: 18.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003575/0.7806, allocations: 2.282 MB / 0.5943 GB, free: 16.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009605/0.7816, allocations: 1.026 MB / 0.5953 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.7816, allocations: 11.98 kB / 0.5953 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.7817, allocations: 51.11 kB / 0.5953 GB, free: 15.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 2.986e-06/0.7817, allocations: 0 / 0.5953 GB, free: 15.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01672/0.7984, allocations: 8.417 MB / 0.6036 GB, free: 6.863 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.7985, allocations: 140.5 kB / 0.6037 GB, free: 6.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003663/0.8022, allocations: 2.835 MB / 0.6065 GB, free: 3.844 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001857/0.8024, allocations: 45.64 kB / 0.6065 GB, free: 3.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009541/0.8033, allocations: 2.079 MB / 0.6085 GB, free: 1.684 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.8037, allocations: 438.6 kB / 0.609 GB, free: 1.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.8039, allocations: 88 kB / 0.609 GB, free: 1.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.8041, allocations: 0.4917 MB / 0.6095 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002077/0.8061, allocations: 1.414 MB / 0.6109 GB, free: 15.24 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004411/0.8106, allocations: 4.236 MB / 0.615 GB, free: 9.578 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007139/0.8177, allocations: 6.114 MB / 0.621 GB, free: 2.062 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.847e-05/0.8178, allocations: 28 kB / 0.621 GB, free: 2.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.0137/0.8315, allocations: 6.08 MB / 0.627 GB, free: 11.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.238e-05/0.8317, allocations: 52 kB / 0.627 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.8318, allocations: 104.3 kB / 0.6271 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/0.834, allocations: 0.785 MB / 0.6279 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/0.8376, allocations: 0.998 MB / 0.6289 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00603/0.8436, allocations: 4.117 MB / 0.6329 GB, free: 5.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004298/0.848, allocations: 291.5 kB / 0.6332 GB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/0.8492, allocations: 276 kB / 0.6334 GB, free: 5.199 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.00379/0.853, allocations: 1.36 MB / 0.6347 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007871/0.8538, allocations: 236.8 kB / 0.635 GB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004404/0.8582, allocations: 1.849 MB / 0.6368 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.761e-05/0.8583, allocations: 23.92 kB / 0.6368 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.8583, allocations: 0 / 0.6368 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.8583, allocations: 7.984 kB / 0.6368 GB, free: 1.691 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.8695, allocations: 4.798 MB / 0.6415 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.8696, allocations: 4 kB / 0.6415 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006599/0.8702, allocations: 135.9 kB / 0.6416 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.8722, allocations: 0.6404 MB / 0.6423 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.8723, allocations: 23.94 kB / 0.6423 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004662/0.877, allocations: 3.644 MB / 0.6458 GB, free: 8.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.877, allocations: 32 / 0.6458 GB, free: 8.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005897/0.8829, allocations: 3.679 MB / 0.6494 GB, free: 4.523 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008643/0.8838, allocations: 301.8 kB / 0.6497 GB, free: 4.207 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005795/0.8844, allocations: 20 kB / 0.6497 GB, free: 4.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.8858, allocations: 71.89 kB / 0.6498 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.886, allocations: 63.84 kB / 0.6499 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.8861, allocations: 28 kB / 0.6499 GB, free: 4.027 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003949/0.89, allocations: 1.77 MB / 0.6516 GB, free: 2.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.89, allocations: 0 / 0.6516 GB, free: 2.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004447/0.8945, allocations: 0.6484 MB / 0.6523 GB, free: 1.602 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.000507/0.895, allocations: 155.6 kB / 0.6524 GB, free: 1.441 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006233/0.9013, allocations: 3.41 MB / 0.6557 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.9013, allocations: 0 / 0.6557 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.9027, allocations: 0.916 MB / 0.6566 GB, free: 13.12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.9054, allocations: 249.5 kB / 0.6569 GB, free: 12.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.9172, allocations: 6.426 MB / 0.6631 GB, free: 6.395 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003138/0.9204, allocations: 2.184 MB / 0.6653 GB, free: 4.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003901/0.9243, allocations: 1.403 MB / 0.6666 GB, free: 2.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005999/0.9249, allocations: 163.4 kB / 0.6668 GB, free: 2.609 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/0.9249, allocations: 0 / 0.6668 GB, free: 2.609 MB / 442.7 MB Notification: Performance of Templates: time 0.2257/1.151, allocations: 21.68 MB / 0.688 GB, free: 128.2 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/jenkins1/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