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.536/1.536, allocations: 252 MB / 268 MB, free: 10.86 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.001003/0.001004, allocations: 175 kB / 327.6 MB, free: 2.094 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.994/1.994, allocations: 205.4 MB / 0.5786 GB, free: 20.14 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.0008304/0.0008307, allocations: 83.56 kB / 0.6832 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003725, allocations: 8.594 kB / 0.7976 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2254, allocations: 106.3 MB / 0.9015 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001594/0.227, allocations: 1.109 MB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004313/0.2275, allocations: 228.2 kB / 0.9028 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.895e-05/0.2275, allocations: 0 / 0.9028 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.754e-05/0.2276, allocations: 3.938 kB / 0.9028 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.718e-05/0.2277, allocations: 15.91 kB / 0.9028 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.2279, allocations: 23.92 kB / 0.9028 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.655e-05/0.2279, allocations: 43.86 kB / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.2281, allocations: 7.984 kB / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.843e-05/0.2282, allocations: 23.91 kB / 0.9029 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.2283, allocations: 19.92 kB / 0.9029 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.2284, allocations: 0 / 0.9029 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.2284, allocations: 4 kB / 0.9029 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.31e-05/0.2284, allocations: 3.984 kB / 0.9029 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.188e-05/0.2285, allocations: 53.56 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.626e-05/0.2286, allocations: 23.92 kB / 0.903 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2286, allocations: 4 kB / 0.903 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.284e-06/0.2286, allocations: 0 / 0.903 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2286, allocations: 0 / 0.903 GB, free: 61.75 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.0005443/0.2292, allocations: 375.5 kB / 0.9033 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2292, allocations: 8.031 kB / 0.9033 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.476e-05/0.2292, allocations: 4.938 kB / 0.9033 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.795e-05/0.2293, allocations: 164.4 kB / 0.9035 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.2293, allocations: 4.375 kB / 0.9035 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.2294, allocations: 4.359 kB / 0.9035 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.2296, allocations: 74.23 kB / 0.9036 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2296, allocations: 192 / 0.9036 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2296, allocations: 7.938 kB / 0.9036 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.2296, allocations: 3.984 kB / 0.9036 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.2298, allocations: 59.89 kB / 0.9036 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003643/0.2302, allocations: 280.7 kB / 0.9039 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.2303, allocations: 66.48 kB / 0.904 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.835e-05/0.2304, allocations: 40.95 kB / 0.904 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.2305, allocations: 80 / 0.904 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002035/0.2307, allocations: 91.3 kB / 0.9041 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.2307, allocations: 3.938 kB / 0.9041 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003864/0.2311, allocations: 137.5 kB / 0.9042 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.2311, allocations: 55.41 kB / 0.9043 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.065e-05/0.2312, allocations: 101.9 kB / 0.9044 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.2312, allocations: 29.7 kB / 0.9044 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.2312, allocations: 88.12 kB / 0.9045 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.2313, allocations: 11.81 kB / 0.9045 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-06/0.2313, allocations: 0 / 0.9045 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.267e-05/0.2313, allocations: 322.8 kB / 0.9048 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.284e-05/0.2314, allocations: 31.98 kB / 0.9049 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.833e-05/0.2315, allocations: 68.14 kB / 0.9049 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.2317, allocations: 104.1 kB / 0.905 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2317, allocations: 0 / 0.905 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002334/0.232, allocations: 133.4 kB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.232, allocations: 4 kB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.232, allocations: 0 / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.232, allocations: 4 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.2322, allocations: 24.11 kB / 0.9052 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2322, allocations: 0 / 0.9052 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.2322, allocations: 12 kB / 0.9052 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2323, allocations: 7.984 kB / 0.9052 GB, free: 59.22 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.393e-05/0.2324, allocations: 125.7 kB / 0.9053 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.2324, allocations: 3.906 kB / 0.9053 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002651/0.2327, allocations: 122 kB / 0.9054 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2327, allocations: 0 / 0.9054 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2327, allocations: 0 / 0.9054 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2327, allocations: 8.031 kB / 0.9054 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.2331, allocations: 370.4 kB / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2331, allocations: 0 / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.996e-05/0.2331, allocations: 15.98 kB / 0.9058 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2331, allocations: 0 / 0.9058 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.2332, allocations: 4 kB / 0.9058 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2332, allocations: 7.984 kB / 0.9058 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2332, allocations: 0 / 0.9058 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.2334, allocations: 207.3 kB / 0.906 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.2335, allocations: 81.36 kB / 0.9061 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.2335, allocations: 15.92 kB / 0.9061 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.2336, allocations: 12 kB / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.2336, allocations: 3.984 kB / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.2337, allocations: 7.938 kB / 0.9061 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.848e-05/0.2337, allocations: 87.27 kB / 0.9062 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2337, allocations: 0 / 0.9062 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002169/0.2339, allocations: 8 kB / 0.9062 GB, free: 58.06 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 (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.0001527/0.2341, allocations: 111.2 kB / 0.9063 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002656/0.2344, allocations: 71.89 kB / 0.9064 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2344, allocations: 256 / 0.9064 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.2345, allocations: 47.97 kB / 0.9064 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.2347, allocations: 10.53 kB / 0.9065 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003249/0.2351, allocations: 186 kB / 0.9066 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.2353, allocations: 0.6848 MB / 0.9073 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.2353, allocations: 15.44 kB / 0.9073 GB, free: 56.87 MB / 0.6042 GB Notification: Performance of SimCode: time 3.01e-07/0.2353, allocations: 0 / 0.9073 GB, free: 56.87 MB / 0.6042 GB Notification: Performance of Templates: time 0.002008/0.2373, allocations: 0.8116 MB / 0.9081 GB, free: 56.07 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)