Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001575/0.001575, allocations: 107 kB / 16.36 MB, free: 6.305 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.001714/0.001714, allocations: 189.2 kB / 17.29 MB, free: 5.875 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.523/1.523, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.075/2.075, allocations: 292.3 MB / 0.5496 GB, free: 17.45 MB / 462.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.001439/0.001439, allocations: 71.19 kB / 0.6729 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2557, allocations: 114.6 MB / 0.7848 GB, free: 3.133 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002163/0.2579, allocations: 0.6777 MB / 0.7855 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2593, allocations: 1.043 MB / 0.7865 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.955e-05/0.2594, allocations: 0 / 0.7865 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.2595, allocations: 3.938 kB / 0.7865 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.01e-05/0.2595, allocations: 3.938 kB / 0.7865 GB, free: 1.387 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2599, allocations: 47.83 kB / 0.7865 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.288e-05/0.26, allocations: 35.92 kB / 0.7866 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2601, allocations: 15.98 kB / 0.7866 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.649e-05/0.2602, allocations: 19.92 kB / 0.7866 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.262e-05/0.2602, allocations: 15.92 kB / 0.7866 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.2602, allocations: 4 kB / 0.7866 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.2603, allocations: 19.98 kB / 0.7866 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.2604, allocations: 11.92 kB / 0.7866 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.2604, allocations: 19.92 kB / 0.7867 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.2605, allocations: 51.8 kB / 0.7867 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2606, allocations: 0 / 0.7867 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.864e-06/0.2606, allocations: 0 / 0.7867 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.857e-06/0.2606, allocations: 8 kB / 0.7867 GB, free: 1.141 MB / 0.6544 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.0005816/0.2612, allocations: 355.4 kB / 0.7871 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2612, allocations: 12.03 kB / 0.7871 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.2613, allocations: 8.781 kB / 0.7871 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.2614, allocations: 172.3 kB / 0.7872 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-06/0.2614, allocations: 384 / 0.7872 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.2615, allocations: 4.375 kB / 0.7872 GB, free: 0.5117 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.2617, allocations: 66.22 kB / 0.7873 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2617, allocations: 192 / 0.7873 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.2617, allocations: 11.81 kB / 0.7873 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2617, allocations: 0 / 0.7873 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.2619, allocations: 43.95 kB / 0.7874 GB, free: 396 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.2624, allocations: 264.9 kB / 0.7876 GB, free: 80 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.2625, allocations: 54.48 kB / 0.7877 GB, free: 16 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3855/0.6481, allocations: 22.95 kB / 0.7877 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.6481, allocations: 3.875 kB / 0.7877 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.6484, allocations: 69.61 kB / 0.7878 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 2.104e-06/0.6484, allocations: 0 / 0.7878 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0004135/0.6489, allocations: 110.4 kB / 0.7879 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.6489, allocations: 54.38 kB / 0.7879 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.261e-05/0.649, allocations: 106.3 kB / 0.788 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.649, allocations: 29.3 kB / 0.788 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.649, allocations: 88.8 kB / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.6491, allocations: 11.75 kB / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.6491, allocations: 23.78 kB / 0.7882 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.6492, allocations: 314.9 kB / 0.7885 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.198e-05/0.6493, allocations: 22.98 kB / 0.7885 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.6494, allocations: 49.47 kB / 0.7885 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.6496, allocations: 79.28 kB / 0.7886 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.6496, allocations: 1.562 kB / 0.7886 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002393/0.6498, allocations: 104.6 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.6499, allocations: 5.75 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.6499, allocations: 0 / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.6499, allocations: 2.719 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.65, allocations: 14.05 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.65, allocations: 2.781 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.6501, allocations: 14.39 kB / 0.7888 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.6501, allocations: 0.5938 kB / 0.7888 GB, free: 48.05 MB / 0.6544 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.481e-05/0.6502, allocations: 121.5 kB / 0.7889 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-06/0.6502, allocations: 3.719 kB / 0.7889 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.6505, allocations: 97.89 kB / 0.789 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.6505, allocations: 2.812 kB / 0.789 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.6505, allocations: 0 / 0.789 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.6505, allocations: 0.5312 kB / 0.789 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.6509, allocations: 342.9 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.6509, allocations: 2.688 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.737e-05/0.6509, allocations: 16.36 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.651, allocations: 0.75 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.651, allocations: 0.5 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.651, allocations: 1.719 kB / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.651, allocations: 0 / 0.7893 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.6512, allocations: 185.8 kB / 0.7895 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.154e-05/0.6512, allocations: 86.62 kB / 0.7896 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.6513, allocations: 0 / 0.7896 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.6513, allocations: 5.297 kB / 0.7896 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.6514, allocations: 8.594 kB / 0.7896 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.6514, allocations: 2.375 kB / 0.7896 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.877e-05/0.6514, allocations: 88.58 kB / 0.7897 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6514, allocations: 0 / 0.7897 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002389/0.6517, allocations: 10.72 kB / 0.7897 GB, free: 47.29 MB / 0.6544 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 (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.0001255/0.6518, allocations: 108.8 kB / 0.7898 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.6521, allocations: 57.88 kB / 0.7898 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6521, allocations: 0.5 kB / 0.7898 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.898e-05/0.6522, allocations: 30.61 kB / 0.7899 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.6524, allocations: 11.48 kB / 0.7899 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002823/0.6527, allocations: 159.4 kB / 0.79 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.6529, allocations: 0.6823 MB / 0.7907 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.6529, allocations: 13.44 kB / 0.7907 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.6529, allocations: 0 / 0.7907 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of Templates: time 0.002334/0.6552, allocations: 0.8221 MB / 0.7915 GB, free: 46.36 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)