Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.482/2.482, allocations: 393.5 MB / 408.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.00139, allocations: 184 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.687/1.687, allocations: 223.1 MB / 0.7992 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009317/0.0009319, allocations: 100.3 kB / 0.9396 GB, free: 2.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003881, allocations: 13.25 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3042, allocations: 143 MB / 1.229 GB, free: 85.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2002/0.5044, allocations: 150.6 MB / 1.376 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.5047, allocations: 75.95 kB / 1.376 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.00333/0.508, allocations: 1.232 MB / 1.378 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.893e-06/0.508, allocations: 0 / 1.378 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.508, allocations: 0 / 1.378 GB, free: 13.38 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005032/0.5085, allocations: 384.9 kB / 1.378 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.5086, allocations: 12.03 kB / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.5086, allocations: 7.906 kB / 1.378 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.5088, allocations: 182.9 kB / 1.378 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.5088, allocations: 0 / 1.378 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.5088, allocations: 4 kB / 1.378 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.509, allocations: 49.69 kB / 1.378 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.509, allocations: 0 / 1.378 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.509, allocations: 0 / 1.378 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.509, allocations: 3.984 kB / 1.378 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.083e-05/0.5091, allocations: 12 kB / 1.378 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004232/0.5095, allocations: 284.8 kB / 1.378 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 8.168e-05/0.5096, allocations: 38.56 kB / 1.378 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.5096, allocations: 0 / 1.378 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.5098, allocations: 101.2 kB / 1.379 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.5098, allocations: 4 kB / 1.379 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0003261/0.5101, allocations: 216.3 kB / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.5102, allocations: 85.06 kB / 1.379 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.5103, allocations: 105 kB / 1.379 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.5103, allocations: 25.98 kB / 1.379 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.5104, allocations: 88.14 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.5104, allocations: 15.78 kB / 1.379 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.5104, allocations: 11.94 kB / 1.379 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.5105, allocations: 318.8 kB / 1.379 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.592e-05/0.5106, allocations: 23.92 kB / 1.379 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.407e-05/0.5106, allocations: 34.52 kB / 1.379 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.5107, allocations: 49.69 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.5107, allocations: 0 / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001613/0.5109, allocations: 119.3 kB / 1.38 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.5109, allocations: 35.27 kB / 1.38 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.5109, allocations: 4.062 kB / 1.38 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5109, allocations: 0 / 1.38 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.511, allocations: 4 kB / 1.38 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.511, allocations: 3.984 kB / 1.38 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.5111, allocations: 11.95 kB / 1.38 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.5111, allocations: 8 kB / 1.38 GB, free: 10.9 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001179/0.5112, allocations: 154 kB / 1.38 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.5112, allocations: 7.906 kB / 1.38 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.5113, allocations: 8.375 kB / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.5113, allocations: 0 / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5113, allocations: 0 / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5113, allocations: 0 / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.5117, allocations: 404.1 kB / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.5117, allocations: 0 / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.039e-05/0.5117, allocations: 8.047 kB / 1.38 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.5117, allocations: 4 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.5117, allocations: 4 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.5117, allocations: 4 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5117, allocations: 3.953 kB / 1.38 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/0.512, allocations: 229.1 kB / 1.38 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.512, allocations: 81.2 kB / 1.381 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.512, allocations: 3.938 kB / 1.381 GB, free: 9.895 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.5122, allocations: 15.98 kB / 1.381 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.964e-05/0.5122, allocations: 15.94 kB / 1.381 GB, free: 9.863 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.5122, allocations: 4 kB / 1.381 GB, free: 9.859 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.415e-05/0.5123, allocations: 83.28 kB / 1.381 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5123, allocations: 0 / 1.381 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002235/0.5125, allocations: 16 kB / 1.381 GB, free: 9.762 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.000112/0.5126, allocations: 103.2 kB / 1.381 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001932/0.5128, allocations: 115.3 kB / 1.381 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.5129, allocations: 4.062 kB / 1.381 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.673e-05/0.513, allocations: 96.11 kB / 1.381 GB, free: 9.414 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.5132, allocations: 17.02 kB / 1.381 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.5135, allocations: 164.3 kB / 1.381 GB, free: 9.207 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.5139, allocations: 0.6888 MB / 1.382 GB, free: 8.492 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.5139, allocations: 7.984 kB / 1.382 GB, free: 8.484 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.5139, allocations: 11.44 kB / 1.382 GB, free: 8.477 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5139, allocations: 0 / 1.382 GB, free: 8.477 MB / 0.8855 GB Notification: Performance of Templates: time 0.002818/0.5168, allocations: 0.7354 MB / 1.383 GB, free: 7.75 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches