Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.261/3.261, allocations: 287.3 MB / 302.3 MB, free: 8.305 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.00245/0.00245, allocations: 188.7 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.561/2.561, allocations: 205.4 MB / 0.6295 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.00118/0.00118, allocations: 92.36 kB / 0.7428 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000512/0.0005123, allocations: 12.05 kB / 0.8656 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2254, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.000881/0.2264, allocations: 409.7 kB / 0.9786 GB, free: 27.99 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.2278, allocations: 1.048 MB / 0.9796 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.2278, allocations: 3.938 kB / 0.9796 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.2279, allocations: 0 / 0.9796 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.176e-05/0.228, allocations: 8 kB / 0.9796 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.2282, allocations: 39.83 kB / 0.9797 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.913e-05/0.2283, allocations: 39.94 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.571e-05/0.2284, allocations: 4 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.437e-05/0.2285, allocations: 23.92 kB / 0.9797 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.758e-05/0.2286, allocations: 35.89 kB / 0.9798 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.2286, allocations: 4 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.754e-05/0.2287, allocations: 19.92 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.2287, allocations: 15.92 kB / 0.9798 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.2288, allocations: 29.7 kB / 0.9798 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.2289, allocations: 51.88 kB / 0.9799 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2289, allocations: 0 / 0.9799 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2289, allocations: 0 / 0.9799 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.2289, allocations: 3.938 kB / 0.9799 GB, free: 26.65 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006506/0.2296, allocations: 379.5 kB / 0.9802 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2296, allocations: 8.031 kB / 0.9802 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.2297, allocations: 11.84 kB / 0.9803 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.967e-05/0.2298, allocations: 167 kB / 0.9804 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.2298, allocations: 4 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.2299, allocations: 8 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.2302, allocations: 89.64 kB / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2302, allocations: 0 / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.2302, allocations: 0 / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2302, allocations: 0 / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.2306, allocations: 71.89 kB / 0.9806 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00057/0.2311, allocations: 316.6 kB / 0.9809 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.2314, allocations: 90.53 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.2315, allocations: 0 / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.2318, allocations: 95.48 kB / 0.9811 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.2318, allocations: 0 / 0.9811 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0007467/0.2325, allocations: 189.5 kB / 0.9812 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.2326, allocations: 63.39 kB / 0.9813 GB, free: 25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.996e-05/0.2327, allocations: 109.8 kB / 0.9814 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.2327, allocations: 41.69 kB / 0.9814 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.757e-05/0.2328, allocations: 80.38 kB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.2328, allocations: 27.66 kB / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.2328, allocations: 0 / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.39e-05/0.2329, allocations: 322.8 kB / 0.9819 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.2331, allocations: 39.97 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.2333, allocations: 66.55 kB / 0.982 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.2335, allocations: 48.34 kB / 0.982 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2335, allocations: 3.938 kB / 0.982 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004643/0.234, allocations: 165.5 kB / 0.9822 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.234, allocations: 4 kB / 0.9822 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.234, allocations: 3.938 kB / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2341, allocations: 0 / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.2343, allocations: 28.05 kB / 0.9822 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2343, allocations: 3.984 kB / 0.9822 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2344, allocations: 15.92 kB / 0.9822 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.2345, allocations: 11.95 kB / 0.9822 GB, free: 24 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.03e-05/0.2346, allocations: 123.7 kB / 0.9824 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.2346, allocations: 3.906 kB / 0.9824 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004933/0.2351, allocations: 157.9 kB / 0.9825 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2351, allocations: 0 / 0.9825 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2351, allocations: 0 / 0.9825 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2351, allocations: 4 kB / 0.9825 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006767/0.2358, allocations: 426.3 kB / 0.9829 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2358, allocations: 0 / 0.9829 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.236, allocations: 12 kB / 0.9829 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.236, allocations: 3.984 kB / 0.9829 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.236, allocations: 0 / 0.9829 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.236, allocations: 4 kB / 0.9829 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.236, allocations: 4 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.2365, allocations: 239.4 kB / 0.9832 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.2366, allocations: 92.94 kB / 0.9833 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/0.2366, allocations: 4 kB / 0.9833 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.2368, allocations: 12.27 kB / 0.9833 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.2368, allocations: 8 kB / 0.9833 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.2369, allocations: 7.984 kB / 0.9833 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.199e-05/0.2369, allocations: 87.42 kB / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.7e-07/0.2369, allocations: 3.938 kB / 0.9834 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003233/0.2373, allocations: 24 kB / 0.9834 GB, free: 22.71 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001631/0.2374, allocations: 115.4 kB / 0.9835 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004373/0.2379, allocations: 99.88 kB / 0.9836 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2379, allocations: 0 / 0.9836 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.2381, allocations: 56.09 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.2384, allocations: 7.938 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004082/0.2388, allocations: 169.4 kB / 0.9838 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.2389, allocations: 0.6926 MB / 0.9845 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.41e-05/0.239, allocations: 12.42 kB / 0.9845 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.877e-05/0.2391, allocations: 11.44 kB / 0.9845 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of SimCode: time 6.11e-07/0.2391, allocations: 0 / 0.9845 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of Templates: time 0.004039/0.2431, allocations: 0.8756 MB / 0.9854 GB, free: 20.62 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)