Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.465/1.465, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.000952/0.000952, allocations: 169.8 kB / 326.5 MB, free: 2.703 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.734/1.734, allocations: 205 MB / 0.5766 GB, free: 20.97 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.0008551/0.0008553, allocations: 91.97 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 8.75 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2139, allocations: 105.4 MB / 0.8967 GB, free: 68.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003193/0.2171, allocations: 2.698 MB / 0.8994 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001749/0.2189, allocations: 0.9357 MB / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003085/0.2193, allocations: 11.94 kB / 0.9003 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.2195, allocations: 47.58 kB / 0.9003 GB, free: 64.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.2197, allocations: 75.42 kB / 0.9004 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.2202, allocations: 189.4 kB / 0.9006 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003632/0.2206, allocations: 455.3 kB / 0.901 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.2209, allocations: 197.2 kB / 0.9012 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.2211, allocations: 131.1 kB / 0.9013 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.2213, allocations: 135.1 kB / 0.9015 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.2213, allocations: 12 kB / 0.9015 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.482e-05/0.2213, allocations: 12 kB / 0.9015 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.2214, allocations: 63.58 kB / 0.9016 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.2215, allocations: 158.9 kB / 0.9017 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000293/0.2218, allocations: 359.1 kB / 0.902 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.2218, allocations: 0 / 0.902 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.535e-06/0.2219, allocations: 0 / 0.902 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.2219, allocations: 0 / 0.902 GB, free: 62.74 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009178/0.2228, allocations: 0.6544 MB / 0.9027 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.2228, allocations: 12.03 kB / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.2229, allocations: 48.38 kB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004819/0.2234, allocations: 396.3 kB / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.2234, allocations: 25.03 kB / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.2235, allocations: 28.38 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/0.224, allocations: 341.4 kB / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.224, allocations: 0 / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.224, allocations: 16 kB / 0.9035 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2241, allocations: 11.98 kB / 0.9035 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004071/0.2245, allocations: 218.1 kB / 0.9037 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.2257, allocations: 1.186 MB / 0.9049 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.2262, allocations: 230.8 kB / 0.9051 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.2264, allocations: 129.6 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.2264, allocations: 4 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.2264, allocations: 38.94 kB / 0.9053 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.2264, allocations: 0 / 0.9053 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.0005604/0.227, allocations: 302.1 kB / 0.9056 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.227, allocations: 106.8 kB / 0.9057 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.2273, allocations: 341.7 kB / 0.906 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.2273, allocations: 29.7 kB / 0.906 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2274, allocations: 216.2 kB / 0.9062 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.2275, allocations: 86.83 kB / 0.9063 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/0.2275, allocations: 25.72 kB / 0.9063 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.501e-05/0.2276, allocations: 346.8 kB / 0.9067 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.2278, allocations: 83.89 kB / 0.9067 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.228, allocations: 139.7 kB / 0.9069 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.2283, allocations: 216.7 kB / 0.9071 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2283, allocations: 0 / 0.9071 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004055/0.2287, allocations: 288.8 kB / 0.9074 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2287, allocations: 4 kB / 0.9074 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2287, allocations: 8.188 kB / 0.9074 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2288, allocations: 0 / 0.9074 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.229, allocations: 59.91 kB / 0.9074 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.229, allocations: 4 kB / 0.9074 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.2292, allocations: 35.81 kB / 0.9075 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.2292, allocations: 8 kB / 0.9075 GB, free: 56.85 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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 0.000125/0.2293, allocations: 165.7 kB / 0.9076 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.2294, allocations: 35.53 kB / 0.9077 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.401e-05/0.2295, allocations: 39.36 kB / 0.9077 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2295, allocations: 4 kB / 0.9077 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.2295, allocations: 0 / 0.9077 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.2295, allocations: 3.984 kB / 0.9077 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/0.2298, allocations: 397.2 kB / 0.9081 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2298, allocations: 0 / 0.9081 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.23, allocations: 43.92 kB / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.23, allocations: 3.984 kB / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.23, allocations: 8 kB / 0.9081 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.23, allocations: 3.984 kB / 0.9081 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2301, allocations: 3.984 kB / 0.9081 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005718/0.2306, allocations: 430.3 kB / 0.9086 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.512e-05/0.2307, allocations: 132.6 kB / 0.9087 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.2308, allocations: 4 kB / 0.9087 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.231, allocations: 27.97 kB / 0.9087 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/0.231, allocations: 15.92 kB / 0.9087 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.231, allocations: 11.98 kB / 0.9087 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001676/0.2312, allocations: 243.2 kB / 0.909 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2312, allocations: 0 / 0.909 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000268/0.2315, allocations: 63.84 kB / 0.909 GB, free: 55.15 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 9.375e-05/0.2316, allocations: 103.2 kB / 0.9091 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000381/0.232, allocations: 212.3 kB / 0.9093 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.232, allocations: 0 / 0.9093 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.2322, allocations: 95.91 kB / 0.9094 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.2327, allocations: 83.77 kB / 0.9095 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2337, allocations: 0.8733 MB / 0.9104 GB, free: 53.76 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.2339, allocations: 0.7914 MB / 0.9111 GB, free: 52.94 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.686e-05/0.234, allocations: 31.42 kB / 0.9112 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.234, allocations: 4 kB / 0.9112 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of Templates: time 0.004892/0.2389, allocations: 4.16 MB / 0.9152 GB, free: 48.76 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)