Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.538/1.538, allocations: 249.5 MB / 257 MB, free: 6.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 183.5 kB / 316.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.3 MB / 0.5671 GB, free: 15.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008817/0.0008818, allocations: 94.52 kB / 0.6714 GB, free: 4.945 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.471e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2124, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7424/0.9549, allocations: 131.8 MB / 1.014 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.9551, allocations: 70.45 kB / 1.014 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002245/0.9574, allocations: 0.8663 MB / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.042e-06/0.9574, allocations: 0 / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.9574, allocations: 4 kB / 1.015 GB, free: 5.086 MB / 0.6355 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.0004136/0.9579, allocations: 350.8 kB / 1.015 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.9579, allocations: 15.97 kB / 1.015 GB, free: 4.688 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.9579, allocations: 3.906 kB / 1.015 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.9581, allocations: 179 kB / 1.015 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.9581, allocations: 0 / 1.015 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.9581, allocations: 4 kB / 1.015 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.765e-05/0.9582, allocations: 11.5 kB / 1.015 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.521e-05/0.9583, allocations: 52.98 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.9583, allocations: 3.938 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.9583, allocations: 0 / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.9583, allocations: 0 / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003591/0.9587, allocations: 263.9 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.017e-05/0.9588, allocations: 37.95 kB / 1.016 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.05e-05/0.9588, allocations: 16.55 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.9589, allocations: 0 / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/0.959, allocations: 60.03 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 4.85e-06/0.959, allocations: 0 / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001777/0.9592, allocations: 71.7 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.9592, allocations: 59.39 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.684e-05/0.9593, allocations: 96.38 kB / 1.016 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.9593, allocations: 25.7 kB / 1.016 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.9594, allocations: 84.14 kB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.9594, allocations: 23.48 kB / 1.016 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.9594, allocations: 0 / 1.016 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.9595, allocations: 322.5 kB / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.597e-05/0.9596, allocations: 11.56 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-05/0.9596, allocations: 35.98 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.761e-05/0.9597, allocations: 23.3 kB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9597, allocations: 4 kB / 1.017 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001188/0.9598, allocations: 76.78 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.9598, allocations: 4 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.9598, allocations: 3.984 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.9598, allocations: 4 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.96, allocations: 15.98 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.96, allocations: 4.094 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.045e-05/0.9601, allocations: 19.92 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.9601, allocations: 4 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 6.796e-05/0.9601, allocations: 112.7 kB / 1.017 GB, free: 3 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.953e-05/0.9602, allocations: 3.906 kB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.9603, allocations: 74.05 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.9603, allocations: 0 / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.9603, allocations: 0 / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.9604, allocations: 11.88 kB / 1.017 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.9606, allocations: 294.5 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.9606, allocations: 0 / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.9607, allocations: 16.17 kB / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.9607, allocations: 0 / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.9607, allocations: 3.938 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.9607, allocations: 192 / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9608, allocations: 4 kB / 1.017 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.9609, allocations: 176.7 kB / 1.017 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.653e-05/0.961, allocations: 81.02 kB / 1.017 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.961, allocations: 0 / 1.017 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.9611, allocations: 11.98 kB / 1.017 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/0.9611, allocations: 7.562 kB / 1.017 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.9611, allocations: 3.984 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.811e-05/0.9612, allocations: 87.28 kB / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9612, allocations: 0 / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002349/0.9614, allocations: 8 kB / 1.018 GB, free: 2.191 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 9.423e-05/0.9615, allocations: 99 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.277e-05/0.9616, allocations: 35.12 kB / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.9616, allocations: 0 / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.64e-05/0.9617, allocations: 19.67 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.9619, allocations: 14.02 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002076/0.9621, allocations: 79.62 kB / 1.018 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.9624, allocations: 0.6903 MB / 1.018 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.807e-05/0.9624, allocations: 192 / 1.018 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.612e-05/0.9624, allocations: 15.06 kB / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/0.9624, allocations: 0 / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of Templates: time 0.002346/0.9648, allocations: 0.5188 MB / 1.019 GB, free: 0.707 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches