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.0008602/0.0008606, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.007503/0.007504, allocations: 173.6 kB / 16.27 MB, free: 6.613 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.663/1.663, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.645/1.645, allocations: 252 MB / 0.5105 GB, free: 4.637 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.0005243/0.0005243, allocations: 12 kB / 0.6249 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5267/0.5272, allocations: 106.3 MB / 0.7287 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001385/0.5286, allocations: 1.113 MB / 0.7298 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005104/0.5292, allocations: 224.2 kB / 0.73 GB, free: 9.914 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.5292, allocations: 0 / 0.73 GB, free: 9.914 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.065e-05/0.5292, allocations: 7.922 kB / 0.73 GB, free: 9.906 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.639e-05/0.5293, allocations: 0 / 0.73 GB, free: 9.906 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001552/0.5295, allocations: 19.92 kB / 0.7301 GB, free: 9.887 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.028e-05/0.5295, allocations: 47.86 kB / 0.7301 GB, free: 9.84 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.653e-05/0.5296, allocations: 11.98 kB / 0.7301 GB, free: 9.828 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 5.822e-05/0.5297, allocations: 15.92 kB / 0.7301 GB, free: 9.812 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.05e-05/0.5298, allocations: 23.92 kB / 0.7301 GB, free: 9.789 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.5298, allocations: 0 / 0.7301 GB, free: 9.789 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.5298, allocations: 4 kB / 0.7302 GB, free: 9.785 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.84e-05/0.5298, allocations: 3.984 kB / 0.7302 GB, free: 9.781 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.5299, allocations: 45.58 kB / 0.7302 GB, free: 9.73 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.595e-05/0.5299, allocations: 43.84 kB / 0.7302 GB, free: 9.688 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.53, allocations: 0 / 0.7302 GB, free: 9.688 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.405e-06/0.53, allocations: 0 / 0.7302 GB, free: 9.688 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.53, allocations: 3.938 kB / 0.7302 GB, free: 9.684 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.0004914/0.5305, allocations: 369.3 kB / 0.7306 GB, free: 9.273 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.5305, allocations: 8.031 kB / 0.7306 GB, free: 9.266 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.5305, allocations: 4.938 kB / 0.7306 GB, free: 9.262 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.5307, allocations: 176.3 kB / 0.7308 GB, free: 9.051 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.5307, allocations: 384 / 0.7308 GB, free: 9.051 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.5307, allocations: 4.375 kB / 0.7308 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.5309, allocations: 66.23 kB / 0.7308 GB, free: 8.977 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.5309, allocations: 192 / 0.7308 GB, free: 8.977 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.5309, allocations: 7.922 kB / 0.7309 GB, free: 8.969 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.5309, allocations: 4 kB / 0.7309 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.5311, allocations: 55.91 kB / 0.7309 GB, free: 8.91 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003742/0.5315, allocations: 280.8 kB / 0.7312 GB, free: 8.586 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.5317, allocations: 70.48 kB / 0.7312 GB, free: 8.508 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.5318, allocations: 36.89 kB / 0.7313 GB, free: 8.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.5318, allocations: 0 / 0.7313 GB, free: 8.469 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.532, allocations: 79.33 kB / 0.7314 GB, free: 8.379 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.532, allocations: 0 / 0.7314 GB, free: 8.379 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0003873/0.5324, allocations: 133.5 kB / 0.7315 GB, free: 8.242 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.5324, allocations: 55.41 kB / 0.7315 GB, free: 8.176 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.968e-05/0.5325, allocations: 117.8 kB / 0.7316 GB, free: 8.051 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.5325, allocations: 25.7 kB / 0.7317 GB, free: 8.02 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.004e-05/0.5326, allocations: 88.08 kB / 0.7318 GB, free: 7.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.5326, allocations: 15.8 kB / 0.7318 GB, free: 7.914 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.5327, allocations: 17.72 kB / 0.7318 GB, free: 7.891 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.5328, allocations: 318.8 kB / 0.7321 GB, free: 7.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.5329, allocations: 35.92 kB / 0.7321 GB, free: 7.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.533, allocations: 56.27 kB / 0.7322 GB, free: 7.465 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002172/0.5332, allocations: 112.1 kB / 0.7323 GB, free: 7.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5332, allocations: 4 kB / 0.7323 GB, free: 7.336 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002506/0.5335, allocations: 113.4 kB / 0.7324 GB, free: 7.219 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5335, allocations: 9.719 kB / 0.7324 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.5335, allocations: 160 / 0.7324 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.5336, allocations: 8 kB / 0.7324 GB, free: 7.203 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-05/0.5336, allocations: 16.23 kB / 0.7324 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5337, allocations: 0 / 0.7324 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.644e-05/0.5337, allocations: 19.98 kB / 0.7324 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.5337, allocations: 4 kB / 0.7325 GB, free: 7.164 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 7.7e-05/0.5338, allocations: 121.7 kB / 0.7326 GB, free: 7.035 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.5338, allocations: 4 kB / 0.7326 GB, free: 7.031 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.5341, allocations: 106 kB / 0.7327 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5341, allocations: 0 / 0.7327 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5341, allocations: 0 / 0.7327 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.5342, allocations: 4 kB / 0.7327 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004266/0.5346, allocations: 374.3 kB / 0.733 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.5346, allocations: 0 / 0.733 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.922e-05/0.5347, allocations: 11.98 kB / 0.733 GB, free: 6.484 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.5347, allocations: 8 kB / 0.7331 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.5347, allocations: 7.938 kB / 0.7331 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.5347, allocations: 192 / 0.7331 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5347, allocations: 0 / 0.7331 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.535, allocations: 207.3 kB / 0.7333 GB, free: 6.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.753e-05/0.535, allocations: 85.02 kB / 0.7333 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.5351, allocations: 0 / 0.7333 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.782e-05/0.5352, allocations: 15.98 kB / 0.7334 GB, free: 6.133 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.5352, allocations: 7.984 kB / 0.7334 GB, free: 6.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.5352, allocations: 3.938 kB / 0.7334 GB, free: 6.121 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.707e-05/0.5353, allocations: 87.28 kB / 0.7335 GB, free: 6.035 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5353, allocations: 0 / 0.7335 GB, free: 6.035 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002209/0.5355, allocations: 12 kB / 0.7335 GB, free: 6.023 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.000107/0.5356, allocations: 107.2 kB / 0.7336 GB, free: 5.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002391/0.5359, allocations: 80.14 kB / 0.7336 GB, free: 5.832 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5359, allocations: 0 / 0.7336 GB, free: 5.832 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.536, allocations: 32.17 kB / 0.7337 GB, free: 5.801 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.5363, allocations: 15.92 kB / 0.7337 GB, free: 5.785 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002841/0.5365, allocations: 152.6 kB / 0.7338 GB, free: 5.605 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.5368, allocations: 0.6809 MB / 0.7345 GB, free: 4.898 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.777e-05/0.5368, allocations: 7.984 kB / 0.7345 GB, free: 4.891 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.361e-05/0.5368, allocations: 7.438 kB / 0.7345 GB, free: 4.883 MB / 0.545 GB Notification: Performance of SimCode: time 4e-07/0.5368, allocations: 0 / 0.7345 GB, free: 4.883 MB / 0.545 GB Notification: Performance of Templates: time 0.002553/0.5394, allocations: 0.5709 MB / 0.7351 GB, free: 4.32 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: