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.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.464/1.464, allocations: 252 MB / 267.6 MB, free: 10.91 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.001038/0.001038, allocations: 174.5 kB / 327.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.4 MB / 0.5783 GB, free: 20.55 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.0007411/0.0007414, allocations: 87.98 kB / 0.6829 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003318, allocations: 9.125 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1978, allocations: 106.3 MB / 0.9008 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001308/0.1992, allocations: 1.092 MB / 0.9019 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003959/0.1996, allocations: 225.4 kB / 0.9021 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.839e-05/0.1996, allocations: 0 / 0.9021 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.484e-05/0.1997, allocations: 3.938 kB / 0.9021 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.446e-05/0.1997, allocations: 7.922 kB / 0.9021 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.1999, allocations: 23.97 kB / 0.9022 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.516e-05/0.2, allocations: 43.86 kB / 0.9022 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.983e-05/0.2001, allocations: 15.97 kB / 0.9022 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.021e-05/0.2002, allocations: 11.94 kB / 0.9022 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.267e-05/0.2002, allocations: 23.91 kB / 0.9023 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.2002, allocations: 3.984 kB / 0.9023 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.236e-05/0.2002, allocations: 4 kB / 0.9023 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.2003, allocations: 4 kB / 0.9023 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.588e-05/0.2003, allocations: 29.7 kB / 0.9023 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.78e-05/0.2004, allocations: 31.92 kB / 0.9023 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2004, allocations: 3.938 kB / 0.9023 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2004, allocations: 0 / 0.9023 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.2004, allocations: 4 kB / 0.9023 GB, free: 62.73 MB / 0.6042 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.0004726/0.2009, allocations: 363.4 kB / 0.9027 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2009, allocations: 8.031 kB / 0.9027 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/0.201, allocations: 4 kB / 0.9027 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.662e-05/0.201, allocations: 167 kB / 0.9028 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.2011, allocations: 4 kB / 0.9028 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.2011, allocations: 11.94 kB / 0.9029 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.2013, allocations: 69.66 kB / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2013, allocations: 0 / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.2013, allocations: 0 / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2013, allocations: 0 / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.2015, allocations: 63.88 kB / 0.903 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003318/0.2019, allocations: 284.8 kB / 0.9033 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.202, allocations: 62.55 kB / 0.9033 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.699e-05/0.2021, allocations: 32.97 kB / 0.9034 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.2022, allocations: 0 / 0.9034 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.2024, allocations: 87.31 kB / 0.9034 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2024, allocations: 3.938 kB / 0.9034 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003817/0.2028, allocations: 141.7 kB / 0.9036 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.2028, allocations: 55.41 kB / 0.9036 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.917e-05/0.2029, allocations: 109.8 kB / 0.9037 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.2029, allocations: 25.7 kB / 0.9038 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.076e-05/0.2029, allocations: 91.98 kB / 0.9038 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.2029, allocations: 15.8 kB / 0.9039 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.2029, allocations: 4 kB / 0.9039 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.001e-05/0.203, allocations: 314.8 kB / 0.9042 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.983e-05/0.2031, allocations: 35.91 kB / 0.9042 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.2032, allocations: 64.27 kB / 0.9043 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.2033, allocations: 39.98 kB / 0.9043 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2034, allocations: 0 / 0.9043 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000239/0.2036, allocations: 129.4 kB / 0.9044 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2036, allocations: 4 kB / 0.9044 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2036, allocations: 0 / 0.9044 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.2037, allocations: 4 kB / 0.9044 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.2038, allocations: 19.98 kB / 0.9044 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.2038, allocations: 0 / 0.9044 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.694e-05/0.2039, allocations: 20.06 kB / 0.9045 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.2039, allocations: 4.312 kB / 0.9045 GB, free: 60.3 MB / 0.6042 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 7.425e-05/0.2039, allocations: 128.4 kB / 0.9046 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.204, allocations: 4 kB / 0.9046 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.2042, allocations: 121.9 kB / 0.9047 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2043, allocations: 0 / 0.9047 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2043, allocations: 3.938 kB / 0.9047 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2043, allocations: 4 kB / 0.9047 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003782/0.2047, allocations: 378.5 kB / 0.9051 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2047, allocations: 0 / 0.9051 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.216e-05/0.2047, allocations: 12 kB / 0.9051 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2048, allocations: 3.984 kB / 0.9051 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.2048, allocations: 0 / 0.9051 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2048, allocations: 0 / 0.9051 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2048, allocations: 3.953 kB / 0.9051 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.205, allocations: 215.4 kB / 0.9053 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.2051, allocations: 81.02 kB / 0.9054 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.2051, allocations: 192 / 0.9054 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-05/0.2052, allocations: 16.23 kB / 0.9054 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.2052, allocations: 11.94 kB / 0.9054 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.2053, allocations: 11.95 kB / 0.9054 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.423e-05/0.2053, allocations: 83.27 kB / 0.9055 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2053, allocations: 0 / 0.9055 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002118/0.2055, allocations: 12 kB / 0.9055 GB, free: 59.13 MB / 0.6042 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 9.672e-05/0.2056, allocations: 96.23 kB / 0.9056 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002306/0.2059, allocations: 87.88 kB / 0.9057 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2059, allocations: 0 / 0.9057 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.206, allocations: 35.92 kB / 0.9057 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.2063, allocations: 16.92 kB / 0.9057 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002842/0.2066, allocations: 170.3 kB / 0.9059 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.2067, allocations: 0.6848 MB / 0.9066 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.889e-05/0.2067, allocations: 11.42 kB / 0.9066 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2067, allocations: 7.938 kB / 0.9066 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of Templates: time 0.001771/0.2085, allocations: 0.804 MB / 0.9074 GB, free: 57.15 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)