Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008707/0.0008706, allocations: 94.66 kB / 15.06 MB, free: 1.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.1 MB, free: 5.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.663/1.663, allocations: 292.7 MB / 0.5499 GB, free: 14.58 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005185/0.0005186, allocations: 14.44 kB / 0.6737 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2293, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0009004/0.2303, allocations: 417.5 kB / 0.7877 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.2318, allocations: 1.037 MB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.301e-05/0.2319, allocations: 7.938 kB / 0.7887 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.891e-05/0.2319, allocations: 0 / 0.7887 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.746e-05/0.232, allocations: 7.922 kB / 0.7887 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002812/0.2323, allocations: 39.91 kB / 0.7888 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.2324, allocations: 59.89 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.505e-05/0.2325, allocations: 7.984 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.594e-05/0.2326, allocations: 23.92 kB / 0.7888 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.443e-05/0.2326, allocations: 35.83 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.2327, allocations: 4 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.518e-05/0.2327, allocations: 15.98 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.2327, allocations: 8 kB / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.2328, allocations: 41.62 kB / 0.7889 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.2329, allocations: 55.88 kB / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 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.0005764/0.2335, allocations: 375.5 kB / 0.7894 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2336, allocations: 8.031 kB / 0.7894 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.2336, allocations: 7.906 kB / 0.7894 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.2337, allocations: 171 kB / 0.7895 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.2338, allocations: 11.94 kB / 0.7895 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.2338, allocations: 4 kB / 0.7895 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.234, allocations: 93.58 kB / 0.7896 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.2341, allocations: 4 kB / 0.7896 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2341, allocations: 3.938 kB / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2341, allocations: 0 / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.2343, allocations: 63.95 kB / 0.7897 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.2348, allocations: 316.7 kB / 0.79 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.235, allocations: 82.48 kB / 0.7901 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.2351, allocations: 56.81 kB / 0.7901 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2352, allocations: 4 kB / 0.7901 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.2354, allocations: 99.34 kB / 0.7902 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.2354, allocations: 0 / 0.7902 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000477/0.2359, allocations: 189.6 kB / 0.7904 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.2359, allocations: 59.41 kB / 0.7905 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.964e-05/0.236, allocations: 105.8 kB / 0.7906 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.236, allocations: 33.7 kB / 0.7906 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.724e-05/0.2361, allocations: 84.38 kB / 0.7907 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.2361, allocations: 27.64 kB / 0.7907 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.2361, allocations: 4 kB / 0.7907 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2362, allocations: 322.8 kB / 0.791 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.2364, allocations: 47.91 kB / 0.7911 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.2365, allocations: 73.34 kB / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.2366, allocations: 43.98 kB / 0.7912 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2366, allocations: 0 / 0.7912 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002996/0.2369, allocations: 149.5 kB / 0.7913 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.237, allocations: 8 kB / 0.7913 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.237, allocations: 0 / 0.7913 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.237, allocations: 0 / 0.7913 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.2371, allocations: 35.98 kB / 0.7914 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2371, allocations: 384 / 0.7914 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.95e-05/0.2372, allocations: 19.83 kB / 0.7914 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.2372, allocations: 4 kB / 0.7914 GB, free: 7.48 MB / 0.6075 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.384e-05/0.2373, allocations: 126.4 kB / 0.7915 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.2374, allocations: 11.92 kB / 0.7915 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.2377, allocations: 154 kB / 0.7917 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2377, allocations: 0 / 0.7917 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.2377, allocations: 3.984 kB / 0.7917 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2377, allocations: 0 / 0.7917 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004922/0.2382, allocations: 426.3 kB / 0.7921 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.2382, allocations: 0 / 0.7921 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.709e-05/0.2383, allocations: 15.98 kB / 0.7921 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2383, allocations: 3.938 kB / 0.7921 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-06/0.2383, allocations: 0 / 0.7921 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2383, allocations: 0 / 0.7921 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2383, allocations: 4 kB / 0.7921 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000325/0.2386, allocations: 247.4 kB / 0.7923 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.2387, allocations: 89.2 kB / 0.7924 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.2387, allocations: 4 kB / 0.7924 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.493e-05/0.2388, allocations: 15.98 kB / 0.7924 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.2389, allocations: 7.984 kB / 0.7925 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.2389, allocations: 8 kB / 0.7925 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.329e-05/0.2389, allocations: 79.28 kB / 0.7925 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2389, allocations: 0 / 0.7925 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002433/0.2392, allocations: 27.94 kB / 0.7926 GB, free: 6.176 MB / 0.6075 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.0001354/0.2393, allocations: 103.2 kB / 0.7927 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002872/0.2396, allocations: 108.1 kB / 0.7928 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2396, allocations: 0 / 0.7928 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.2398, allocations: 60.03 kB / 0.7928 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.24, allocations: 15.98 kB / 0.7928 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.2403, allocations: 165.3 kB / 0.793 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.2406, allocations: 0.6887 MB / 0.7937 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.2406, allocations: 12.42 kB / 0.7937 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.2407, allocations: 11.44 kB / 0.7937 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.2407, allocations: 0 / 0.7937 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of Templates: time 0.002972/0.2437, allocations: 0.8797 MB / 0.7945 GB, free: 4.078 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: