Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 200.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008218/0.0008218, allocations: 109.7 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001943/0.0001943, allocations: 12 kB / 357.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1917, allocations: 51.49 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09114/0.2829, allocations: 83.6 MB / 493 MB, free: 7.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.2832, allocations: 67.97 kB / 493.1 MB, free: 6.938 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2158/0.499, allocations: 27.23 MB / 0.5081 GB, free: 94.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4991, allocations: 0 / 0.5081 GB, free: 94.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.4991, allocations: 4.125 kB / 0.5081 GB, free: 94.45 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006753/0.4998, allocations: 0.6844 MB / 0.5088 GB, free: 93.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.4998, allocations: 8.188 kB / 0.5088 GB, free: 93.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.387e-05/0.4999, allocations: 38.31 kB / 0.5088 GB, free: 93.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.5002, allocations: 261.2 kB / 0.5091 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.5003, allocations: 5.688 kB / 0.5091 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.5003, allocations: 7.75 kB / 0.5091 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.5006, allocations: 146.3 kB / 0.5092 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.5006, allocations: 0 / 0.5092 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.5006, allocations: 4.406 kB / 0.5092 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5007, allocations: 1.188 kB / 0.5092 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000148/0.5008, allocations: 77.45 kB / 0.5093 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007744/0.5016, allocations: 476.6 kB / 0.5098 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.5018, allocations: 102.2 kB / 0.5099 GB, free: 93.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.5018, allocations: 3.625 kB / 0.5099 GB, free: 93.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003681/0.5022, allocations: 231.6 kB / 0.5101 GB, free: 93.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.803e-06/0.5022, allocations: 0 / 0.5101 GB, free: 93.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009981/0.5032, allocations: 0.6528 MB / 0.5107 GB, free: 92.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.5033, allocations: 172.4 kB / 0.5109 GB, free: 92.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005931/0.5039, allocations: 465 kB / 0.5113 GB, free: 92.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.5039, allocations: 36.73 kB / 0.5114 GB, free: 92.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.504, allocations: 101.8 kB / 0.5115 GB, free: 92.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.504, allocations: 30.06 kB / 0.5115 GB, free: 92.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.504, allocations: 4.125 kB / 0.5115 GB, free: 92.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.5041, allocations: 320.8 kB / 0.5118 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.5042, allocations: 64.38 kB / 0.5119 GB, free: 91.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.5044, allocations: 87.25 kB / 0.512 GB, free: 91.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.5045, allocations: 170.3 kB / 0.5121 GB, free: 91.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.5045, allocations: 0 / 0.5121 GB, free: 91.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005046/0.505, allocations: 411.6 kB / 0.5125 GB, free: 91.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.5051, allocations: 128.3 kB / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5051, allocations: 0 / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.5051, allocations: 3.844 kB / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.754e-05/0.5051, allocations: 0 / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.5052, allocations: 3.438 kB / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.5053, allocations: 23.86 kB / 0.5127 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.395e-05/0.5054, allocations: 115.7 kB / 0.5128 GB, free: 91.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002698/0.5057, allocations: 369.3 kB / 0.5131 GB, free: 91.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.5057, allocations: 35.41 kB / 0.5132 GB, free: 91.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.76e-05/0.5058, allocations: 61.88 kB / 0.5132 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5058, allocations: 5.953 kB / 0.5132 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5058, allocations: 0 / 0.5132 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.5059, allocations: 3.969 kB / 0.5132 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007853/0.5066, allocations: 0.8358 MB / 0.514 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5067, allocations: 0 / 0.514 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.768e-06/0.5067, allocations: 3.938 kB / 0.514 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5067, allocations: 4 kB / 0.5141 GB, free: 90.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.5067, allocations: 22.92 kB / 0.5141 GB, free: 90.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5067, allocations: 192 / 0.5141 GB, free: 90.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5067, allocations: 3.953 kB / 0.5141 GB, free: 90.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.5073, allocations: 0.562 MB / 0.5146 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.5076, allocations: 249.5 kB / 0.5149 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.913e-05/0.5076, allocations: 15.09 kB / 0.5149 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.5078, allocations: 23.47 kB / 0.5149 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5079, allocations: 34 kB / 0.5149 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.142e-05/0.508, allocations: 129.4 kB / 0.5151 GB, free: 90.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003691/0.5084, allocations: 387.5 kB / 0.5154 GB, free: 90.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5084, allocations: 0 / 0.5154 GB, free: 90.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.5087, allocations: 44.44 kB / 0.5155 GB, free: 90.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.5088, allocations: 116.6 kB / 0.5156 GB, free: 90.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004563/0.5093, allocations: 450.6 kB / 0.516 GB, free: 89.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5093, allocations: 4.062 kB / 0.516 GB, free: 89.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.5095, allocations: 384 kB / 0.5164 GB, free: 89.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.51, allocations: 98.44 kB / 0.5165 GB, free: 89.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000924/0.5109, allocations: 0.7446 MB / 0.5172 GB, free: 88.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.5111, allocations: 0.809 MB / 0.518 GB, free: 88.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.624e-05/0.5112, allocations: 8.25 kB / 0.518 GB, free: 88.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.5112, allocations: 11.31 kB / 0.518 GB, free: 88.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.5112, allocations: 4 kB / 0.518 GB, free: 88.14 MB / 378.7 MB Notification: Performance of Templates: time 0.006847/0.5181, allocations: 5.622 MB / 0.5235 GB, free: 86.11 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches