Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.108/2.108, allocations: 251.1 MB / 266.7 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 184 kB / 326.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.469/2.469, allocations: 205.4 MB / 0.5772 GB, free: 20.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009125/0.0009125, allocations: 89.05 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000635/0.0006353, allocations: 11.75 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2121, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.4428, allocations: 131.5 MB / 1.028 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.4432, allocations: 79.95 kB / 1.028 GB, free: 13.78 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003611/0.4468, allocations: 0.8696 MB / 1.029 GB, free: 12.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4468, allocations: 0 / 1.029 GB, free: 12.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.4469, allocations: 4 kB / 1.029 GB, free: 12.9 MB / 0.6823 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.0006275/0.4475, allocations: 355.4 kB / 1.029 GB, free: 12.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.4476, allocations: 16.02 kB / 1.029 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.4476, allocations: 8.844 kB / 1.029 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.4478, allocations: 168.3 kB / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.4478, allocations: 8.312 kB / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.4479, allocations: 384 / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.4482, allocations: 70.22 kB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.4482, allocations: 192 / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.4482, allocations: 3.938 kB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.4482, allocations: 4 kB / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.4486, allocations: 51.95 kB / 1.029 GB, free: 12.13 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.4491, allocations: 284.7 kB / 1.03 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.4494, allocations: 66.47 kB / 1.03 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.4496, allocations: 36.95 kB / 1.03 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.4497, allocations: 8 kB / 1.03 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.45, allocations: 75.38 kB / 1.03 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 3.256e-06/0.45, allocations: 7.875 kB / 1.03 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0006606/0.4507, allocations: 125.6 kB / 1.03 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.4507, allocations: 55.41 kB / 1.03 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.4509, allocations: 113.8 kB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.4509, allocations: 25.7 kB / 1.03 GB, free: 11.24 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.451, allocations: 96.03 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.451, allocations: 15.75 kB / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-06/0.451, allocations: 4 kB / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4512, allocations: 314.8 kB / 1.031 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.4514, allocations: 27.98 kB / 1.031 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.4516, allocations: 68.2 kB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.4518, allocations: 39.92 kB / 1.031 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4518, allocations: 4 kB / 1.031 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004519/0.4523, allocations: 113.5 kB / 1.031 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4523, allocations: 8 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4524, allocations: 4.156 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4524, allocations: 4 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.4526, allocations: 15.98 kB / 1.031 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.4526, allocations: 0 / 1.031 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.4527, allocations: 12.25 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.4527, allocations: 4 kB / 1.031 GB, free: 10.49 MB / 0.6823 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 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.4529, allocations: 127.7 kB / 1.031 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.94e-05/0.4529, allocations: 11.91 kB / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004658/0.4534, allocations: 106 kB / 1.031 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.4534, allocations: 3.938 kB / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4534, allocations: 0 / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4534, allocations: 0 / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006913/0.4541, allocations: 370.5 kB / 1.032 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4542, allocations: 0 / 1.032 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.4543, allocations: 11.98 kB / 1.032 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.4543, allocations: 4 kB / 1.032 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.4543, allocations: 8 kB / 1.032 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4543, allocations: 0 / 1.032 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4543, allocations: 0 / 1.032 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.4548, allocations: 207.3 kB / 1.032 GB, free: 9.574 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.4549, allocations: 77.11 kB / 1.032 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.4549, allocations: 4.188 kB / 1.032 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.4551, allocations: 15.98 kB / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.4552, allocations: 3.938 kB / 1.032 GB, free: 9.457 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.4552, allocations: 7.938 kB / 1.032 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.745e-05/0.4553, allocations: 87.27 kB / 1.032 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.81e-07/0.4553, allocations: 4 kB / 1.032 GB, free: 9.359 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002985/0.4556, allocations: 8 kB / 1.032 GB, free: 9.352 MB / 0.6823 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 (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.0001671/0.4558, allocations: 95.25 kB / 1.032 GB, free: 9.25 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004198/0.4562, allocations: 79.89 kB / 1.032 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4562, allocations: 0 / 1.032 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.4564, allocations: 35.97 kB / 1.032 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.4568, allocations: 8 kB / 1.032 GB, free: 9.129 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004577/0.4572, allocations: 154.7 kB / 1.032 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4576, allocations: 0.6809 MB / 1.033 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.579e-05/0.4576, allocations: 7.938 kB / 1.033 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/0.4577, allocations: 7.438 kB / 1.033 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of SimCode: time 7.31e-07/0.4577, allocations: 0 / 1.033 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of Templates: time 0.003557/0.4612, allocations: 0.5572 MB / 1.034 GB, free: 7.672 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)