Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.00162, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001175/0.001174, allocations: 92.61 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.0003941, allocations: 12 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3569, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.5145, allocations: 90.58 MB / 465.1 MB, free: 6.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003767/0.5149, allocations: 95.95 kB / 465.2 MB, free: 6.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5343/1.049, allocations: 57.68 MB / 0.5106 GB, free: 93.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.049, allocations: 0 / 0.5106 GB, free: 93.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000133/1.049, allocations: 43.22 kB / 0.5107 GB, free: 93.73 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.01016/1.06, allocations: 2.662 MB / 0.5133 GB, free: 92.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/1.06, allocations: 13.58 kB / 0.5133 GB, free: 92.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01527/1.075, allocations: 1.962 MB / 0.5152 GB, free: 92.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/1.088, allocations: 3.311 MB / 0.5184 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002719/1.088, allocations: 182.6 kB / 0.5186 GB, free: 91.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/1.09, allocations: 232.5 kB / 0.5188 GB, free: 91.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/1.107, allocations: 6.815 MB / 0.5255 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001551/1.108, allocations: 48.53 kB / 0.5255 GB, free: 87.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005631/1.108, allocations: 123.7 kB / 0.5256 GB, free: 87.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001389/1.11, allocations: 0.7106 MB / 0.5263 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01562/1.125, allocations: 5.84 MB / 0.532 GB, free: 81.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04413/1.169, allocations: 33.4 MB / 0.5647 GB, free: 46.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00717/1.177, allocations: 2.291 MB / 0.5669 GB, free: 44.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/1.177, allocations: 15.75 kB / 0.5669 GB, free: 44.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/1.177, allocations: 50.45 kB / 0.567 GB, free: 44.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.819e-06/1.177, allocations: 0 / 0.567 GB, free: 44.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.03302/1.21, allocations: 8.731 MB / 0.5755 GB, free: 35.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/1.21, allocations: 148.4 kB / 0.5756 GB, free: 35.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005844/1.216, allocations: 2.554 MB / 0.5781 GB, free: 32.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002976/1.216, allocations: 37.7 kB / 0.5782 GB, free: 32.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/1.218, allocations: 2.068 MB / 0.5802 GB, free: 30.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006452/1.218, allocations: 436.5 kB / 0.5806 GB, free: 30.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004578/1.219, allocations: 88 kB / 0.5807 GB, free: 30.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002741/1.219, allocations: 0.4926 MB / 0.5812 GB, free: 29.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00374/1.223, allocations: 1.414 MB / 0.5825 GB, free: 28.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/1.229, allocations: 4.212 MB / 0.5867 GB, free: 22.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005733/1.235, allocations: 2.398 MB / 0.589 GB, free: 20.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-05/1.235, allocations: 28 kB / 0.589 GB, free: 20.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01791/1.253, allocations: 6.021 MB / 0.5949 GB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.205e-05/1.253, allocations: 48 kB / 0.595 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.253, allocations: 104.8 kB / 0.5951 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/1.257, allocations: 0.8006 MB / 0.5958 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005826/1.263, allocations: 1.002 MB / 0.5968 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008342/1.271, allocations: 4.212 MB / 0.6009 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004973/1.276, allocations: 279.5 kB / 0.6012 GB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007544/1.277, allocations: 276.1 kB / 0.6015 GB, free: 7.18 MB / 378.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.002749/1.28, allocations: 1.375 MB / 0.6028 GB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005551/1.28, allocations: 232.9 kB / 0.603 GB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0062/1.287, allocations: 1.853 MB / 0.6048 GB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.536e-05/1.287, allocations: 16 kB / 0.6048 GB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.287, allocations: 4 kB / 0.6049 GB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/1.287, allocations: 7.984 kB / 0.6049 GB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/1.301, allocations: 4.81 MB / 0.6096 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.301, allocations: 0 / 0.6096 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/1.303, allocations: 135.8 kB / 0.6097 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/1.307, allocations: 0.6405 MB / 0.6103 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002996/1.307, allocations: 20 kB / 0.6103 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00887/1.316, allocations: 3.722 MB / 0.614 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.316, allocations: 7.969 kB / 0.614 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/1.327, allocations: 3.788 MB / 0.6177 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.329, allocations: 445.8 kB / 0.6181 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004875/1.329, allocations: 16 kB / 0.6181 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.331, allocations: 71.91 kB / 0.6182 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/1.331, allocations: 55.88 kB / 0.6182 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/1.331, allocations: 28 kB / 0.6183 GB, free: 5.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005222/1.337, allocations: 1.786 MB / 0.62 GB, free: 3.871 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.337, allocations: 0 / 0.62 GB, free: 3.871 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005108/1.342, allocations: 0.6597 MB / 0.6206 GB, free: 3.215 MB / 394.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.0005452/1.342, allocations: 147.1 kB / 0.6208 GB, free: 3.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009407/1.352, allocations: 3.407 MB / 0.6241 GB, free: 15.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/1.352, allocations: 4 kB / 0.6241 GB, free: 15.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/1.354, allocations: 0.9227 MB / 0.625 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/1.356, allocations: 234.9 kB / 0.6252 GB, free: 14.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/1.373, allocations: 6.694 MB / 0.6318 GB, free: 7.758 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004095/1.377, allocations: 2.24 MB / 0.634 GB, free: 5.484 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/1.378, allocations: 203.4 kB / 0.6342 GB, free: 5.285 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/1.378, allocations: 0 / 0.6342 GB, free: 5.285 MB / 410.7 MB Notification: Performance of Templates: time 0.3909/1.769, allocations: 45.58 MB / 0.6787 GB, free: 121.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches