Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.564/2.564, allocations: 287.5 MB / 303.2 MB, free: 8.203 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.001359/0.001359, allocations: 186.9 kB / 371.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.4 MB / 0.6305 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009233/0.000923, allocations: 96.67 kB / 0.7438 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004683/0.0004685, allocations: 16.98 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2331, allocations: 115.3 MB / 0.9793 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9465/1.18, allocations: 137.8 MB / 1.114 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.18, allocations: 75.22 kB / 1.114 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004961/1.185, allocations: 1.107 MB / 1.115 GB, free: 31.56 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.884e-06/1.185, allocations: 0 / 1.115 GB, free: 31.56 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.296e-06/1.185, allocations: 0 / 1.115 GB, free: 31.56 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000596/1.186, allocations: 377.8 kB / 1.115 GB, free: 31.19 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.186, allocations: 15.75 kB / 1.115 GB, free: 31.18 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/1.186, allocations: 4.844 kB / 1.115 GB, free: 31.18 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/1.186, allocations: 165.8 kB / 1.116 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/1.186, allocations: 10.39 kB / 1.116 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/1.186, allocations: 5.844 kB / 1.116 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/1.186, allocations: 74.84 kB / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/1.186, allocations: 192 / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/1.186, allocations: 5.391 kB / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/1.186, allocations: 4 kB / 1.116 GB, free: 30.94 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/1.187, allocations: 52.23 kB / 1.116 GB, free: 30.94 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/1.187, allocations: 296.8 kB / 1.116 GB, free: 30.68 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/1.188, allocations: 68.34 kB / 1.116 GB, free: 30.64 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/1.188, allocations: 38.12 kB / 1.116 GB, free: 30.63 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/1.188, allocations: 3.844 kB / 1.116 GB, free: 30.63 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/1.188, allocations: 82.33 kB / 1.116 GB, free: 30.58 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.234e-06/1.188, allocations: 0 / 1.116 GB, free: 30.58 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0006128/1.189, allocations: 150.2 kB / 1.116 GB, free: 30.54 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/1.189, allocations: 52.77 kB / 1.116 GB, free: 30.47 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/1.189, allocations: 112.1 kB / 1.116 GB, free: 30.37 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/1.189, allocations: 29.7 kB / 1.117 GB, free: 30.33 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.075e-05/1.189, allocations: 88.88 kB / 1.117 GB, free: 30.25 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/1.189, allocations: 18.33 kB / 1.117 GB, free: 30.24 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/1.189, allocations: 3.812 kB / 1.117 GB, free: 30.24 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001297/1.189, allocations: 316.1 kB / 1.117 GB, free: 29.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/1.189, allocations: 31.44 kB / 1.117 GB, free: 29.93 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/1.189, allocations: 64.78 kB / 1.117 GB, free: 29.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/1.19, allocations: 107.7 kB / 1.117 GB, free: 29.83 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/1.19, allocations: 0 / 1.117 GB, free: 29.83 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004426/1.19, allocations: 126.8 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/1.19, allocations: 3.844 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/1.19, allocations: 3.875 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/1.19, allocations: 0 / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/1.191, allocations: 24.42 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/1.191, allocations: 3.875 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/1.191, allocations: 18.41 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/1.191, allocations: 0 / 1.117 GB, free: 29.78 MB / 0.698 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.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001172/1.191, allocations: 124.8 kB / 1.117 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/1.191, allocations: 3.906 kB / 1.117 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004544/1.191, allocations: 132.5 kB / 1.118 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/1.191, allocations: 3.906 kB / 1.118 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/1.191, allocations: 0 / 1.118 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/1.191, allocations: 0 / 1.118 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006463/1.192, allocations: 369.3 kB / 1.118 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/1.192, allocations: 0 / 1.118 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/1.192, allocations: 18.78 kB / 1.118 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/1.192, allocations: 3.938 kB / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/1.192, allocations: 0 / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/1.192, allocations: 0 / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.192, allocations: 0 / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/1.193, allocations: 215.2 kB / 1.118 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/1.193, allocations: 80.48 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/1.193, allocations: 3.812 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/1.193, allocations: 14.94 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/1.193, allocations: 11.02 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/1.193, allocations: 3.938 kB / 1.118 GB, free: 29.06 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.4e-05/1.193, allocations: 79.16 kB / 1.118 GB, free: 28.99 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.3e-07/1.193, allocations: 0 / 1.118 GB, free: 28.99 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003481/1.193, allocations: 22.48 kB / 1.118 GB, free: 28.99 MB / 0.698 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001803/1.194, allocations: 106.6 kB / 1.118 GB, free: 28.89 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000386/1.194, allocations: 87.52 kB / 1.119 GB, free: 28.88 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.194, allocations: 0 / 1.119 GB, free: 28.88 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/1.194, allocations: 41.23 kB / 1.119 GB, free: 28.88 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/1.195, allocations: 14.61 kB / 1.119 GB, free: 28.87 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004052/1.195, allocations: 149 kB / 1.119 GB, free: 28.75 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/1.195, allocations: 0.6826 MB / 1.119 GB, free: 28.05 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.184e-05/1.195, allocations: 7.906 kB / 1.119 GB, free: 28.05 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.212e-05/1.195, allocations: 15.25 kB / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of SimCode: time 8.42e-07/1.195, allocations: 0 / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of Templates: time 0.00367/1.199, allocations: 0.7182 MB / 1.12 GB, free: 27.97 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)