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 3.262/3.262, allocations: 287.3 MB / 302.3 MB, free: 8.219 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.001648/0.001648, allocations: 181.5 kB / 370.8 MB, free: 10.88 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.3/2.3, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001105/0.001104, allocations: 98.55 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005115/0.0005117, allocations: 19.45 kB / 0.8656 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2253, allocations: 115.3 MB / 0.9782 GB, free: 28.4 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008598/0.2262, allocations: 393.8 kB / 0.9786 GB, free: 28.01 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2277, allocations: 1.041 MB / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.2278, allocations: 0 / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.2278, allocations: 0 / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.327e-05/0.2279, allocations: 15.91 kB / 0.9796 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.2282, allocations: 27.91 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.823e-05/0.2282, allocations: 35.91 kB / 0.9797 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.153e-05/0.2284, allocations: 11.92 kB / 0.9797 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.712e-05/0.2284, allocations: 19.97 kB / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.711e-05/0.2285, allocations: 19.92 kB / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.2285, allocations: 7.938 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.712e-05/0.2286, allocations: 11.98 kB / 0.9797 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.2286, allocations: 11.92 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.2287, allocations: 29.7 kB / 0.9798 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.2288, allocations: 35.91 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2288, allocations: 0 / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2288, allocations: 4 kB / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.2288, allocations: 0 / 0.9798 GB, free: 26.72 MB / 0.6198 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.000615/0.2295, allocations: 367.5 kB / 0.9802 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2295, allocations: 8.031 kB / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.2296, allocations: 7.906 kB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.624e-05/0.2297, allocations: 178.9 kB / 0.9804 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.2297, allocations: 4 kB / 0.9804 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.2297, allocations: 4 kB / 0.9804 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.23, allocations: 69.66 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.23, allocations: 0 / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.23, allocations: 0 / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/0.2301, allocations: 4 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.2304, allocations: 55.95 kB / 0.9805 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.2309, allocations: 284.8 kB / 0.9808 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.2311, allocations: 70.53 kB / 0.9808 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.2312, allocations: 0 / 0.9808 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.2315, allocations: 79.5 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 3.757e-06/0.2315, allocations: 0 / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006148/0.2321, allocations: 141.5 kB / 0.981 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.2322, allocations: 55.41 kB / 0.9811 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.197e-05/0.2322, allocations: 109.8 kB / 0.9812 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2323, allocations: 29.7 kB / 0.9812 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.543e-05/0.2323, allocations: 84.22 kB / 0.9813 GB, free: 25 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.2324, allocations: 31.62 kB / 0.9813 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.2324, allocations: 0 / 0.9813 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.947e-05/0.2324, allocations: 318.8 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.2326, allocations: 31.97 kB / 0.9817 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.2328, allocations: 72.2 kB / 0.9817 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.233, allocations: 35.92 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.233, allocations: 4 kB / 0.9818 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004149/0.2334, allocations: 117.6 kB / 0.9819 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2335, allocations: 4.125 kB / 0.9819 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2335, allocations: 8 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2335, allocations: 0 / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.2337, allocations: 27.92 kB / 0.9819 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2337, allocations: 320 / 0.9819 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.2338, allocations: 15.89 kB / 0.9819 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2339, allocations: 7.953 kB / 0.9819 GB, free: 24.31 MB / 0.6198 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 8.862e-05/0.234, allocations: 119.6 kB / 0.9821 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.234, allocations: 4 kB / 0.9821 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004272/0.2344, allocations: 121.9 kB / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.2345, allocations: 4 kB / 0.9822 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2345, allocations: 0 / 0.9822 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2345, allocations: 4 kB / 0.9822 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.2351, allocations: 366.4 kB / 0.9825 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2351, allocations: 0 / 0.9825 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2352, allocations: 19.98 kB / 0.9826 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.2352, allocations: 4 kB / 0.9826 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2352, allocations: 0 / 0.9826 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.2353, allocations: 4.25 kB / 0.9826 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2353, allocations: 0 / 0.9826 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004532/0.2357, allocations: 215.4 kB / 0.9828 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.821e-05/0.2358, allocations: 81.02 kB / 0.9828 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2358, allocations: 4 kB / 0.9828 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.236, allocations: 11.98 kB / 0.9829 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.236, allocations: 7.922 kB / 0.9829 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.2361, allocations: 4 kB / 0.9829 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.942e-05/0.2361, allocations: 87.23 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2361, allocations: 4 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003391/0.2365, allocations: 19.94 kB / 0.983 GB, free: 23.15 MB / 0.6198 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.000156/0.2366, allocations: 103.2 kB / 0.9831 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003925/0.237, allocations: 87.92 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2371, allocations: 0 / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.2372, allocations: 35.97 kB / 0.9832 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.2375, allocations: 6.172 kB / 0.9832 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.2379, allocations: 153.1 kB / 0.9833 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.238, allocations: 0.6887 MB / 0.984 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.051e-05/0.2381, allocations: 8.156 kB / 0.984 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.2381, allocations: 11.44 kB / 0.984 GB, free: 22 MB / 0.6198 GB Notification: Performance of SimCode: time 6.11e-07/0.2382, allocations: 0 / 0.984 GB, free: 22 MB / 0.6198 GB Notification: Performance of Templates: time 0.003756/0.2419, allocations: 0.7027 MB / 0.9847 GB, free: 21.3 MB / 0.6198 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)