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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001597, allocations: 111.3 kB / 15.23 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002761/0.002762, allocations: 191.2 kB / 16.13 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.607/1.607, allocations: 251.6 MB / 0.5088 GB, free: 3.344 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 63.91 kB / 0.6216 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6586/0.6607, allocations: 104.7 MB / 0.7238 GB, free: 13.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00311/0.6639, allocations: 1.447 MB / 0.7252 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004594/0.6643, allocations: 224.2 kB / 0.7254 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.424e-05/0.6644, allocations: 0 / 0.7254 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.324e-05/0.6645, allocations: 0 / 0.7254 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.832e-05/0.6645, allocations: 7.922 kB / 0.7255 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.6647, allocations: 15.94 kB / 0.7255 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.879e-05/0.6648, allocations: 51.84 kB / 0.7255 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.665, allocations: 11.98 kB / 0.7255 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.864e-05/0.6651, allocations: 19.92 kB / 0.7255 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.942e-05/0.6651, allocations: 15.92 kB / 0.7256 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.953e-05/0.6652, allocations: 4 kB / 0.7256 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.6652, allocations: 0 / 0.7256 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.179e-05/0.6652, allocations: 11.98 kB / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.6652, allocations: 15.88 kB / 0.7256 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.6654, allocations: 43.84 kB / 0.7256 GB, free: 11.28 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.6654, allocations: 4 kB / 0.7256 GB, free: 11.28 MB / 0.545 GB Notification: Performance of FrontEnd: time 8.81e-07/0.6654, allocations: 8 kB / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.6654, allocations: 0 / 0.7256 GB, free: 11.27 MB / 0.545 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.0007081/0.6661, allocations: 361.3 kB / 0.726 GB, free: 10.87 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.6661, allocations: 8.031 kB / 0.726 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.6662, allocations: 8.938 kB / 0.726 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.6664, allocations: 172.2 kB / 0.7262 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.6664, allocations: 8.375 kB / 0.7262 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.6664, allocations: 8.375 kB / 0.7262 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.6666, allocations: 62.17 kB / 0.7262 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.6666, allocations: 192 / 0.7262 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.6666, allocations: 3.938 kB / 0.7263 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.6667, allocations: 3.984 kB / 0.7263 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.6668, allocations: 39.95 kB / 0.7263 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.6676, allocations: 288.8 kB / 0.7266 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.6678, allocations: 62.55 kB / 0.7266 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.37e-05/0.6679, allocations: 24.91 kB / 0.7267 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.6679, allocations: 3.984 kB / 0.7267 GB, free: 10.08 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003769/0.6683, allocations: 79.33 kB / 0.7267 GB, free: 9.992 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.6683, allocations: 0 / 0.7267 GB, free: 9.992 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.000404/0.6687, allocations: 117.5 kB / 0.7268 GB, free: 9.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.6688, allocations: 51.41 kB / 0.7269 GB, free: 9.809 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.6689, allocations: 105.8 kB / 0.727 GB, free: 9.695 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.669, allocations: 33.7 kB / 0.727 GB, free: 9.656 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.161e-05/0.669, allocations: 88.08 kB / 0.7271 GB, free: 9.566 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.669, allocations: 15.8 kB / 0.7271 GB, free: 9.551 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.6692, allocations: 21.72 kB / 0.7271 GB, free: 9.523 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002582/0.6695, allocations: 322.8 kB / 0.7275 GB, free: 9.199 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/0.6696, allocations: 27.92 kB / 0.7275 GB, free: 9.172 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.6697, allocations: 60.27 kB / 0.7275 GB, free: 9.098 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.67, allocations: 88.14 kB / 0.7276 GB, free: 8.996 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.67, allocations: 3.984 kB / 0.7276 GB, free: 8.992 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002533/0.6702, allocations: 109.4 kB / 0.7277 GB, free: 8.879 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.6703, allocations: 5.875 kB / 0.7277 GB, free: 8.875 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.6703, allocations: 0 / 0.7277 GB, free: 8.875 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.6703, allocations: 4 kB / 0.7277 GB, free: 8.871 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/0.6704, allocations: 20.14 kB / 0.7278 GB, free: 8.852 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.6704, allocations: 4 kB / 0.7278 GB, free: 8.848 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.172e-05/0.6705, allocations: 7.984 kB / 0.7278 GB, free: 8.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.6705, allocations: 4 kB / 0.7278 GB, free: 8.836 MB / 0.545 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.firstTrigger,$PRE.unitDelay1.firstTrigger,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.6706, allocations: 121.7 kB / 0.7279 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.425e-05/0.6706, allocations: 7.906 kB / 0.7279 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.6709, allocations: 102.3 kB / 0.728 GB, free: 8.594 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.6709, allocations: 0 / 0.728 GB, free: 8.594 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6709, allocations: 4.062 kB / 0.728 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6709, allocations: 192 / 0.728 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.6714, allocations: 358.4 kB / 0.7283 GB, free: 8.184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.6714, allocations: 3.938 kB / 0.7283 GB, free: 8.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.797e-05/0.6714, allocations: 11.98 kB / 0.7284 GB, free: 8.168 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.6715, allocations: 4 kB / 0.7284 GB, free: 8.164 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.6715, allocations: 3.938 kB / 0.7284 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.6715, allocations: 4 kB / 0.7284 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6715, allocations: 0 / 0.7284 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.6718, allocations: 191.4 kB / 0.7285 GB, free: 7.953 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.672, allocations: 81.02 kB / 0.7286 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.672, allocations: 4 kB / 0.7286 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.572e-05/0.6721, allocations: 11.98 kB / 0.7286 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.737e-05/0.6721, allocations: 7.984 kB / 0.7286 GB, free: 7.832 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.6722, allocations: 7.938 kB / 0.7287 GB, free: 7.824 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.627e-05/0.6722, allocations: 83.28 kB / 0.7287 GB, free: 7.742 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6722, allocations: 0 / 0.7287 GB, free: 7.742 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003363/0.6726, allocations: 8 kB / 0.7287 GB, free: 7.734 MB / 0.545 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003179/0.6729, allocations: 103.2 kB / 0.7288 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002556/0.6732, allocations: 67.89 kB / 0.7289 GB, free: 7.559 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.6732, allocations: 0 / 0.7289 GB, free: 7.559 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.6733, allocations: 27.98 kB / 0.7289 GB, free: 7.531 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.6736, allocations: 15.08 kB / 0.7289 GB, free: 7.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/0.674, allocations: 143.3 kB / 0.7291 GB, free: 7.352 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.6744, allocations: 0.6887 MB / 0.7298 GB, free: 6.637 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.924e-05/0.6744, allocations: 0 / 0.7298 GB, free: 6.637 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.286e-05/0.6744, allocations: 11.44 kB / 0.7298 GB, free: 6.625 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.6745, allocations: 3.938 kB / 0.7298 GB, free: 6.621 MB / 0.545 GB Notification: Performance of Templates: time 0.002947/0.6774, allocations: 0.5926 MB / 0.7304 GB, free: 6.035 MB / 0.545 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 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)