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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.649/1.649, allocations: 289.9 MB / 297.4 MB, free: 6.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 176.9 kB / 366.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.749/1.749, allocations: 205.3 MB / 0.626 GB, free: 7.148 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008893/0.000889, allocations: 85.45 kB / 0.74 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.055e-05, allocations: 4 kB / 0.8597 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.734/0.734, allocations: 116.3 MB / 0.9733 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2027/0.9368, allocations: 138.2 MB / 1.108 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.937, allocations: 75.94 kB / 1.108 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003022/0.9401, allocations: 1.034 MB / 1.109 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.372e-06/0.9401, allocations: 0 / 1.109 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.9401, allocations: 4.625 kB / 1.109 GB, free: 10.92 MB / 0.7136 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.0004304/0.9406, allocations: 351.8 kB / 1.11 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.9406, allocations: 8.781 kB / 1.11 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.9407, allocations: 7.906 kB / 1.11 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.9408, allocations: 171.6 kB / 1.11 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.9409, allocations: 0.5938 kB / 1.11 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.9409, allocations: 3.938 kB / 1.11 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.583e-05/0.941, allocations: 21.41 kB / 1.11 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.46e-05/0.9411, allocations: 42.25 kB / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.9411, allocations: 0 / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.9411, allocations: 0.5312 kB / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.9411, allocations: 0.5312 kB / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004607/0.9416, allocations: 255.2 kB / 1.11 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.684e-05/0.9417, allocations: 35.12 kB / 1.11 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.122e-05/0.9417, allocations: 13.7 kB / 1.11 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.9418, allocations: 5.469 kB / 1.11 GB, free: 9.895 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.9419, allocations: 56.72 kB / 1.11 GB, free: 9.828 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=5): time 2.706e-06/0.9419, allocations: 1.312 kB / 1.11 GB, free: 9.828 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5): time 0.0001825/0.9421, allocations: 50.44 kB / 1.11 GB, free: 9.773 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.9421, allocations: 59.41 kB / 1.11 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.665e-05/0.9422, allocations: 93.56 kB / 1.11 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.872e-05/0.9422, allocations: 30.55 kB / 1.11 GB, free: 9.57 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.9423, allocations: 88.03 kB / 1.111 GB, free: 9.48 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.9423, allocations: 14 kB / 1.111 GB, free: 9.469 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-06/0.9424, allocations: 7.938 kB / 1.111 GB, free: 9.461 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.9425, allocations: 314.8 kB / 1.111 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.725e-05/0.9425, allocations: 8 kB / 1.111 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-05/0.9426, allocations: 36.7 kB / 1.111 GB, free: 9.09 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.9427, allocations: 24.33 kB / 1.111 GB, free: 9.07 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.9428, allocations: 6.047 kB / 1.111 GB, free: 9.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001948/0.943, allocations: 83.02 kB / 1.111 GB, free: 8.984 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.943, allocations: 4 kB / 1.111 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.943, allocations: 1.219 kB / 1.111 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.943, allocations: 4 kB / 1.111 GB, free: 8.977 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.9431, allocations: 17.39 kB / 1.111 GB, free: 8.961 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.9432, allocations: 6.281 kB / 1.111 GB, free: 8.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.053e-05/0.9432, allocations: 22.61 kB / 1.111 GB, free: 8.938 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.9433, allocations: 4 kB / 1.111 GB, free: 8.934 MB / 0.7136 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.574e-05/0.9433, allocations: 104.9 kB / 1.111 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.342e-05/0.9434, allocations: 7.984 kB / 1.111 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.9435, allocations: 65.98 kB / 1.111 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.9435, allocations: 0 / 1.111 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.9435, allocations: 0 / 1.111 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9435, allocations: 0 / 1.111 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.9438, allocations: 299 kB / 1.112 GB, free: 8.402 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9438, allocations: 0 / 1.112 GB, free: 8.402 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.714e-05/0.9439, allocations: 8 kB / 1.112 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.9439, allocations: 4 kB / 1.112 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.9439, allocations: 3.984 kB / 1.112 GB, free: 8.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.9439, allocations: 0 / 1.112 GB, free: 8.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.9439, allocations: 1.938 kB / 1.112 GB, free: 8.387 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.9441, allocations: 163.4 kB / 1.112 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.257e-05/0.9441, allocations: 81.02 kB / 1.112 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.9442, allocations: 4 kB / 1.112 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.9443, allocations: 7.984 kB / 1.112 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.9443, allocations: 4 kB / 1.112 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.9443, allocations: 3.938 kB / 1.112 GB, free: 8.094 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.354e-05/0.9444, allocations: 87.27 kB / 1.112 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9444, allocations: 3.75 kB / 1.112 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002635/0.9446, allocations: 15.94 kB / 1.112 GB, free: 7.992 MB / 0.7136 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) * 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 (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.0001915/0.9449, allocations: 107.2 kB / 1.112 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001161/0.945, allocations: 35.92 kB / 1.112 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.945, allocations: 0 / 1.112 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.622e-05/0.945, allocations: 12 kB / 1.112 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.9452, allocations: 10.25 kB / 1.112 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.9455, allocations: 78.81 kB / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.9458, allocations: 0.6905 MB / 1.113 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.417e-05/0.9458, allocations: 0 / 1.113 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.9459, allocations: 11.44 kB / 1.113 GB, free: 7 MB / 0.7136 GB Notification: Performance of SimCode: time 5.51e-07/0.9459, allocations: 0 / 1.113 GB, free: 7 MB / 0.7136 GB Notification: Performance of Templates: time 0.002869/0.9487, allocations: 0.5952 MB / 1.113 GB, free: 6.438 MB / 0.7136 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)