Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.537/2.537, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001013/0.001013, allocations: 179.9 kB / 0.4902 GB, free: 2.25 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.471/1.471, allocations: 223.1 MB / 0.7992 GB, free: 15.72 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.001216/0.001216, allocations: 95.95 kB / 0.9396 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004607/0.0004607, allocations: 13.28 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3054, allocations: 143 MB / 1.229 GB, free: 85.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.4995, allocations: 150 MB / 1.376 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4997, allocations: 67.97 kB / 1.376 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.003253/0.503, allocations: 1.054 MB / 1.377 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.513e-06/0.503, allocations: 0 / 1.377 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.503, allocations: 0 / 1.377 GB, free: 14.17 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004727/0.5035, allocations: 367.2 kB / 1.377 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.5036, allocations: 8.031 kB / 1.377 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.5036, allocations: 4 kB / 1.377 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.5038, allocations: 170.9 kB / 1.377 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.5038, allocations: 7.984 kB / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.5038, allocations: 4 kB / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.504, allocations: 65.61 kB / 1.377 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.504, allocations: 4 kB / 1.377 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.5041, allocations: 0 / 1.377 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.5041, allocations: 3.984 kB / 1.377 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.5043, allocations: 51.95 kB / 1.377 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.5048, allocations: 276.9 kB / 1.378 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.505, allocations: 50.48 kB / 1.378 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.505, allocations: 0 / 1.378 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.5053, allocations: 79.47 kB / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=5): time 2.134e-06/0.5053, allocations: 0 / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5): time 0.0004942/0.5058, allocations: 121.5 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.5059, allocations: 63.23 kB / 1.378 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.506, allocations: 101 kB / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.506, allocations: 25.7 kB / 1.378 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.5061, allocations: 92.08 kB / 1.378 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.5061, allocations: 11.81 kB / 1.378 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.5062, allocations: 0 / 1.378 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.5063, allocations: 322.8 kB / 1.379 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.5064, allocations: 23.98 kB / 1.379 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.5066, allocations: 59.39 kB / 1.379 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.5068, allocations: 31.98 kB / 1.379 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5068, allocations: 0 / 1.379 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003108/0.5071, allocations: 113.5 kB / 1.379 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.5072, allocations: 8 kB / 1.379 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.5072, allocations: 0 / 1.379 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.5072, allocations: 0 / 1.379 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.5073, allocations: 16.23 kB / 1.379 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.5074, allocations: 4 kB / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.931e-05/0.5075, allocations: 28 kB / 1.379 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.5075, allocations: 0 / 1.379 GB, free: 11.88 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001153/0.5076, allocations: 114.6 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.5076, allocations: 7.906 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.5079, allocations: 105.5 kB / 1.379 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.508, allocations: 0 / 1.379 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.508, allocations: 0 / 1.379 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.508, allocations: 0 / 1.379 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004781/0.5085, allocations: 354.5 kB / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5085, allocations: 0 / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.5086, allocations: 11.98 kB / 1.379 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.5086, allocations: 4 kB / 1.379 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.5086, allocations: 0 / 1.379 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5086, allocations: 0 / 1.379 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5086, allocations: 3.953 kB / 1.379 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.5089, allocations: 195.4 kB / 1.38 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.112e-05/0.509, allocations: 77.11 kB / 1.38 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.509, allocations: 4 kB / 1.38 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.864e-05/0.5091, allocations: 11.98 kB / 1.38 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.5092, allocations: 11.88 kB / 1.38 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.5092, allocations: 7.953 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.881e-05/0.5093, allocations: 83.73 kB / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5093, allocations: 0 / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002928/0.5096, allocations: 20 kB / 1.38 GB, free: 10.78 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002347/0.5098, allocations: 111.1 kB / 1.38 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002717/0.5101, allocations: 71.89 kB / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5101, allocations: 0 / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.5102, allocations: 28.17 kB / 1.38 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.5105, allocations: 16.19 kB / 1.38 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.5109, allocations: 132.8 kB / 1.38 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.5113, allocations: 0.6827 MB / 1.381 GB, free: 9.68 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.556e-05/0.5113, allocations: 11.98 kB / 1.381 GB, free: 9.668 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.5114, allocations: 15.44 kB / 1.381 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of SimCode: time 6.92e-07/0.5114, allocations: 0 / 1.381 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of Templates: time 0.003563/0.515, allocations: 0.6182 MB / 1.381 GB, free: 9.043 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches