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.495/1.495, allocations: 249.3 MB / 261.8 MB, free: 5.848 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.001132/0.001132, allocations: 184.8 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0009139/0.0009139, allocations: 86.48 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.447e-05/3.461e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2306, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7451/0.9758, allocations: 131.6 MB / 1.02 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.976, allocations: 71.95 kB / 1.02 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002414/0.9785, allocations: 0.8754 MB / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.874e-06/0.9785, allocations: 0 / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.9785, allocations: 0 / 1.021 GB, free: 2.289 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.0004402/0.9789, allocations: 354.1 kB / 1.022 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.979, allocations: 8.031 kB / 1.022 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.9791, allocations: 7.906 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.9792, allocations: 175.6 kB / 1.022 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.9792, allocations: 4 kB / 1.022 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.9793, allocations: 0 / 1.022 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.9794, allocations: 48.31 kB / 1.022 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.9794, allocations: 3.984 kB / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.9795, allocations: 3 kB / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.9795, allocations: 15.94 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.8e-05/0.9795, allocations: 11.31 kB / 1.022 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004865/0.98, allocations: 279.5 kB / 1.022 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.178e-05/0.9801, allocations: 48.94 kB / 1.022 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.9802, allocations: 20.73 kB / 1.022 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.9802, allocations: 0 / 1.022 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001171/0.9803, allocations: 61.69 kB / 1.022 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.665e-06/0.9803, allocations: 0 / 1.022 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001883/0.9805, allocations: 70.95 kB / 1.022 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.9806, allocations: 59.36 kB / 1.022 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.9807, allocations: 108.4 kB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.9807, allocations: 29.02 kB / 1.022 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.9808, allocations: 91.58 kB / 1.023 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.9808, allocations: 15.81 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/0.9808, allocations: 3.938 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.9809, allocations: 318.8 kB / 1.023 GB, free: 472 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.183e-05/0.981, allocations: 14.56 kB / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.695e-05/0.981, allocations: 35.36 kB / 1.023 GB, free: 416 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.295e-05/0.9811, allocations: 25.55 kB / 1.023 GB, free: 396 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.9811, allocations: 0 / 1.023 GB, free: 396 kB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001281/0.9812, allocations: 86.53 kB / 1.023 GB, free: 316 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.9813, allocations: 8 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.9813, allocations: 4.156 kB / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.9813, allocations: 4 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.9814, allocations: 15.98 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.9814, allocations: 3.938 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.466e-05/0.9815, allocations: 19.88 kB / 1.023 GB, free: 260 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.9815, allocations: 4 kB / 1.023 GB, free: 256 kB / 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.455e-05/0.9816, allocations: 108.7 kB / 1.023 GB, free: 144 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.131e-05/0.9816, allocations: 7.906 kB / 1.023 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.9818, allocations: 79.92 kB / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.9818, allocations: 4 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.9818, allocations: 0 / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.9818, allocations: 3.938 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.9821, allocations: 323.8 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9822, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.577e-05/0.9822, allocations: 8.188 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.9822, allocations: 4 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.9823, allocations: 11.98 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9823, allocations: 3.938 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9823, allocations: 3.953 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.9824, allocations: 160.7 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.9825, allocations: 81.02 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.9825, allocations: 0 / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.9826, allocations: 19.61 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/0.9827, allocations: 7.984 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.9827, allocations: 3.953 kB / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.9827, allocations: 87.22 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9827, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002/0.983, allocations: 8.188 kB / 1.024 GB, free: 15.29 MB / 0.6511 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 0.0001187/0.9831, allocations: 99.19 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001081/0.9832, allocations: 49.23 kB / 1.024 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.9832, allocations: 3.5 kB / 1.024 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.25e-05/0.9833, allocations: 19.12 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001642/0.9834, allocations: 4 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002537/0.9837, allocations: 85.47 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.984, allocations: 0.6852 MB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.109e-05/0.984, allocations: 8.172 kB / 1.025 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.984, allocations: 11.44 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/0.9841, allocations: 3.938 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of Templates: time 0.002554/0.9866, allocations: 0.5565 MB / 1.025 GB, free: 13.76 MB / 0.6511 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