Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009637/0.0009638, allocations: 175.4 kB / 13.63 MB, free: 1.684 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.263/1.263, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009335/0.0009336, allocations: 99.78 kB / 286.5 MB, free: 212 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.136e-05/2.139e-05, allocations: 4 kB / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08568, allocations: 50.41 MB / 394.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2847/0.3704, allocations: 82.72 MB / 477 MB, free: 4.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.3707, allocations: 79.78 kB / 477 MB, free: 4.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05285/0.4235, allocations: 27.38 MB / 0.4926 GB, free: 9.492 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4236, allocations: 7.938 kB / 0.4926 GB, free: 9.484 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.4236, allocations: 4 kB / 0.4926 GB, free: 9.48 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.0005613/0.4242, allocations: 0.6059 MB / 0.4932 GB, free: 8.805 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.4242, allocations: 8.031 kB / 0.4932 GB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.751e-05/0.4243, allocations: 43.48 kB / 0.4932 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.4246, allocations: 261.4 kB / 0.4935 GB, free: 8.457 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.4247, allocations: 4 kB / 0.4935 GB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.4247, allocations: 16 kB / 0.4935 GB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.425, allocations: 141.6 kB / 0.4936 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.425, allocations: 0 / 0.4936 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.425, allocations: 4 kB / 0.4936 GB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.425, allocations: 0 / 0.4936 GB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.4252, allocations: 63.97 kB / 0.4937 GB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006808/0.4259, allocations: 488.5 kB / 0.4942 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.4261, allocations: 98.56 kB / 0.4943 GB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.4262, allocations: 88.89 kB / 0.4944 GB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.4262, allocations: 3.938 kB / 0.4944 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.4265, allocations: 230.6 kB / 0.4946 GB, free: 7.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.4265, allocations: 4 kB / 0.4946 GB, free: 7.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006649/0.4272, allocations: 436 kB / 0.495 GB, free: 6.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.785e-05/0.4273, allocations: 166.2 kB / 0.4952 GB, free: 6.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.4279, allocations: 466.4 kB / 0.4956 GB, free: 6.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.428, allocations: 33.7 kB / 0.4956 GB, free: 6.086 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.548e-05/0.428, allocations: 97.08 kB / 0.4957 GB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.242e-05/0.4281, allocations: 27.7 kB / 0.4958 GB, free: 5.961 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.4281, allocations: 4 kB / 0.4958 GB, free: 5.957 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4282, allocations: 326.8 kB / 0.4961 GB, free: 5.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.4284, allocations: 59.98 kB / 0.4961 GB, free: 5.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.4285, allocations: 67.97 kB / 0.4962 GB, free: 5.504 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.4287, allocations: 171.3 kB / 0.4964 GB, free: 5.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4287, allocations: 0 / 0.4964 GB, free: 5.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005579/0.4292, allocations: 418.9 kB / 0.4968 GB, free: 4.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.265e-05/0.4293, allocations: 122.8 kB / 0.4969 GB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4293, allocations: 0 / 0.4969 GB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.4294, allocations: 3.953 kB / 0.4969 GB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.879e-05/0.4294, allocations: 4 kB / 0.4969 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4294, allocations: 0 / 0.4969 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.4296, allocations: 19.98 kB / 0.4969 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.4297, allocations: 119.9 kB / 0.497 GB, free: 4.582 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,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 () * 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.0002245/0.4299, allocations: 242.5 kB / 0.4972 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.067e-05/0.43, allocations: 43.52 kB / 0.4973 GB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.4301, allocations: 59.44 kB / 0.4973 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4301, allocations: 3.938 kB / 0.4973 GB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4301, allocations: 8.016 kB / 0.4974 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4302, allocations: 0 / 0.4974 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.4312, allocations: 0.8407 MB / 0.4982 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.4312, allocations: 0 / 0.4982 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-06/0.4312, allocations: 4 kB / 0.4982 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.4312, allocations: 0 / 0.4982 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.4312, allocations: 23.94 kB / 0.4982 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.4313, allocations: 3.984 kB / 0.4982 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4313, allocations: 0 / 0.4982 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006533/0.4319, allocations: 0.5564 MB / 0.4987 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003497/0.4323, allocations: 248.4 kB / 0.499 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.4324, allocations: 15.94 kB / 0.499 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.4325, allocations: 11.95 kB / 0.499 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4326, allocations: 35.95 kB / 0.499 GB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.4327, allocations: 119.8 kB / 0.4992 GB, free: 2.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.4332, allocations: 384.9 kB / 0.4995 GB, free: 1.836 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4332, allocations: 0 / 0.4995 GB, free: 1.836 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.4335, allocations: 48 kB / 0.4996 GB, free: 1.789 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) * 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.0001632/0.4337, allocations: 115.9 kB / 0.4997 GB, free: 1.668 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005361/0.4342, allocations: 441.6 kB / 0.5001 GB, free: 1.188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4343, allocations: 3.938 kB / 0.5001 GB, free: 1.184 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003359/0.4346, allocations: 381.6 kB / 0.5005 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.4352, allocations: 105.6 kB / 0.5006 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009719/0.4361, allocations: 0.5348 MB / 0.5011 GB, free: 100 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.4366, allocations: 0.8026 MB / 0.5019 GB, free: 15.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.249e-05/0.4367, allocations: 12.64 kB / 0.5019 GB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.241e-05/0.4367, allocations: 11.44 kB / 0.5019 GB, free: 15.24 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4367, allocations: 0 / 0.5019 GB, free: 15.24 MB / 394.7 MB Notification: Performance of Templates: time 0.008612/0.4453, allocations: 5.62 MB / 0.5074 GB, free: 9.566 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches