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.01118/0.01118, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.002541/0.002541, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.748/1.748, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.434/1.434, allocations: 251.7 MB / 0.5094 GB, free: 412 kB / 430.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.001449/0.001449, allocations: 67.91 kB / 0.7258 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7354/0.7369, allocations: 104.7 MB / 0.828 GB, free: 2.637 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002696/0.7396, allocations: 1.389 MB / 0.8294 GB, free: 1.238 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0004973/0.7401, allocations: 238.3 kB / 0.8296 GB, free: 1.004 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.459e-05/0.7402, allocations: 0 / 0.8296 GB, free: 1.004 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 3.622e-05/0.7403, allocations: 7.922 kB / 0.8296 GB, free: 0.9961 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 8.634e-05/0.7404, allocations: 3.938 kB / 0.8296 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.7405, allocations: 27.91 kB / 0.8296 GB, free: 0.9648 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 9.954e-05/0.7407, allocations: 47.91 kB / 0.8297 GB, free: 0.918 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.7408, allocations: 8 kB / 0.8297 GB, free: 0.9102 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 7.364e-05/0.7408, allocations: 23.92 kB / 0.8297 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 5.069e-05/0.7409, allocations: 15.92 kB / 0.8297 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.7409, allocations: 4 kB / 0.8297 GB, free: 0.8672 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.741, allocations: 7.938 kB / 0.8297 GB, free: 0.8594 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 2.555e-05/0.741, allocations: 15.92 kB / 0.8298 GB, free: 0.8438 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 4.93e-05/0.741, allocations: 19.92 kB / 0.8298 GB, free: 0.8242 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.7411, allocations: 43.8 kB / 0.8298 GB, free: 0.7812 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.7412, allocations: 0 / 0.8298 GB, free: 0.7812 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7412, allocations: 4 kB / 0.8298 GB, free: 0.7773 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.7412, allocations: 0 / 0.8298 GB, free: 0.7773 MB / 0.6231 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.0006489/0.7418, allocations: 363 kB / 0.8302 GB, free: 384 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.7419, allocations: 8.031 kB / 0.8302 GB, free: 376 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.742, allocations: 8.844 kB / 0.8302 GB, free: 368 kB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.7421, allocations: 162.6 kB / 0.8303 GB, free: 168 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.7421, allocations: 8.359 kB / 0.8304 GB, free: 160 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.7421, allocations: 8.375 kB / 0.8304 GB, free: 152 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.7423, allocations: 66.16 kB / 0.8304 GB, free: 80 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.7424, allocations: 192 / 0.8304 GB, free: 80 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.7424, allocations: 7.938 kB / 0.8304 GB, free: 72 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.7424, allocations: 0 / 0.8304 GB, free: 72 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.7425, allocations: 39.95 kB / 0.8305 GB, free: 32 kB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004408/0.743, allocations: 276.9 kB / 0.8307 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.7432, allocations: 62.48 kB / 0.8308 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.7433, allocations: 28.91 kB / 0.8308 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.7433, allocations: 0 / 0.8308 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.7435, allocations: 83.28 kB / 0.8309 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=6): time 1.472e-06/0.7435, allocations: 0 / 0.8309 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=6): time 0.0004099/0.7439, allocations: 113.5 kB / 0.831 GB, free: 15.4 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.744, allocations: 59.41 kB / 0.8311 GB, free: 15.33 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.503e-05/0.7441, allocations: 113.8 kB / 0.8312 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.7441, allocations: 25.7 kB / 0.8312 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.7442, allocations: 92.14 kB / 0.8313 GB, free: 15.08 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.7442, allocations: 19.86 kB / 0.8313 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.7443, allocations: 21.72 kB / 0.8313 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.7444, allocations: 310.8 kB / 0.8316 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.472e-05/0.7445, allocations: 31.97 kB / 0.8317 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.7446, allocations: 56.27 kB / 0.8317 GB, free: 14.62 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.7448, allocations: 88.39 kB / 0.8318 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.7448, allocations: 0 / 0.8318 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002488/0.7451, allocations: 121.4 kB / 0.8319 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.7451, allocations: 4 kB / 0.8319 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.7451, allocations: 0 / 0.8319 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.7452, allocations: 7.938 kB / 0.8319 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.7453, allocations: 11.98 kB / 0.8319 GB, free: 14.37 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.7453, allocations: 12.09 kB / 0.8319 GB, free: 14.36 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.436e-05/0.7454, allocations: 7.984 kB / 0.8319 GB, free: 14.35 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.7454, allocations: 8 kB / 0.832 GB, free: 14.34 MB / 0.6387 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 9.717e-05/0.7455, allocations: 118.8 kB / 0.8321 GB, free: 14.22 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.7455, allocations: 3.906 kB / 0.8321 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.7458, allocations: 105.9 kB / 0.8322 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.7458, allocations: 4 kB / 0.8322 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.7458, allocations: 0 / 0.8322 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.7458, allocations: 0 / 0.8322 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004301/0.7463, allocations: 346.5 kB / 0.8325 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7463, allocations: 0 / 0.8325 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.7463, allocations: 15.97 kB / 0.8325 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.7463, allocations: 0 / 0.8325 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.7464, allocations: 0 / 0.8325 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7464, allocations: 7.938 kB / 0.8325 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.7464, allocations: 0 / 0.8325 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.7466, allocations: 195.3 kB / 0.8327 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.396e-05/0.7467, allocations: 81.11 kB / 0.8328 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.7467, allocations: 0 / 0.8328 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.092e-05/0.7468, allocations: 8.359 kB / 0.8328 GB, free: 13.37 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.7469, allocations: 16 kB / 0.8328 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.7469, allocations: 11.86 kB / 0.8328 GB, free: 13.34 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 4.823e-05/0.7469, allocations: 83.28 kB / 0.8329 GB, free: 13.26 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7469, allocations: 0 / 0.8329 GB, free: 13.26 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002354/0.7472, allocations: 12 kB / 0.8329 GB, free: 13.25 MB / 0.6387 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.0001292/0.7473, allocations: 99.19 kB / 0.833 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.000265/0.7476, allocations: 71.94 kB / 0.8331 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7476, allocations: 3.938 kB / 0.8331 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 9.577e-05/0.7477, allocations: 23.98 kB / 0.8331 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.748, allocations: 11.98 kB / 0.8331 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003204/0.7483, allocations: 133.5 kB / 0.8332 GB, free: 12.88 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.7486, allocations: 0.6886 MB / 0.8339 GB, free: 12.16 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.099e-05/0.7486, allocations: 7.984 kB / 0.8339 GB, free: 12.15 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.7487, allocations: 7.438 kB / 0.8339 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of SimCode: time 2.5e-07/0.7487, allocations: 7.938 kB / 0.8339 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of Templates: time 0.0028/0.7515, allocations: 0.6616 MB / 0.8346 GB, free: 11.48 MB / 0.6387 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)