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.348/1.348, allocations: 252 MB / 268 MB, free: 10.85 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.001264/0.001264, allocations: 175 kB / 327.6 MB, free: 2.09 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.713/1.713, allocations: 205.4 MB / 0.5786 GB, free: 20.46 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.0007944/0.0007944, allocations: 90.75 kB / 0.6832 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003504, allocations: 10.34 kB / 0.7976 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2031, allocations: 106.3 MB / 0.9014 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.00309/0.2063, allocations: 2.646 MB / 0.904 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.208, allocations: 0.9241 MB / 0.9049 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004504/0.2085, allocations: 11.94 kB / 0.9049 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.2087, allocations: 43.58 kB / 0.905 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.2091, allocations: 75.42 kB / 0.905 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.2096, allocations: 194.3 kB / 0.9052 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004928/0.2101, allocations: 455.2 kB / 0.9057 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.2105, allocations: 201.2 kB / 0.9059 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.2107, allocations: 131.2 kB / 0.906 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.2109, allocations: 139 kB / 0.9061 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.211, allocations: 12 kB / 0.9061 GB, free: 59 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.363e-05/0.211, allocations: 12 kB / 0.9061 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.571e-05/0.2111, allocations: 47.7 kB / 0.9062 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.2112, allocations: 192.5 kB / 0.9064 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.2115, allocations: 363.4 kB / 0.9067 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2115, allocations: 0 / 0.9067 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2115, allocations: 0 / 0.9067 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.603e-05/0.2115, allocations: 0 / 0.9067 GB, free: 58.39 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.001057/0.2126, allocations: 0.6505 MB / 0.9074 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2127, allocations: 12.03 kB / 0.9074 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.2128, allocations: 48.38 kB / 0.9074 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005413/0.2133, allocations: 392.3 kB / 0.9078 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.2134, allocations: 25.03 kB / 0.9078 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.2134, allocations: 28.38 kB / 0.9078 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.2139, allocations: 345.4 kB / 0.9082 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.214, allocations: 0 / 0.9082 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.214, allocations: 16 kB / 0.9082 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.214, allocations: 8 kB / 0.9082 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.2145, allocations: 230.1 kB / 0.9084 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.2158, allocations: 1.186 MB / 0.9096 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.2164, allocations: 243.8 kB / 0.9098 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.2166, allocations: 118.4 kB / 0.9099 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.2166, allocations: 0 / 0.9099 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.2166, allocations: 42.94 kB / 0.91 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 1.833e-06/0.2167, allocations: 0 / 0.91 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.0006088/0.2173, allocations: 304.9 kB / 0.9102 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.2173, allocations: 106.8 kB / 0.9103 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.2176, allocations: 337.6 kB / 0.9107 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.2176, allocations: 33.7 kB / 0.9107 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.2178, allocations: 220.2 kB / 0.9109 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.2178, allocations: 78.83 kB / 0.911 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.2178, allocations: 8 kB / 0.911 GB, free: 53.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.2179, allocations: 346.8 kB / 0.9113 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.2181, allocations: 75.97 kB / 0.9114 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2183, allocations: 147.6 kB / 0.9115 GB, free: 53.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003301/0.2186, allocations: 216.8 kB / 0.9117 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2186, allocations: 0 / 0.9117 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004467/0.2191, allocations: 292.8 kB / 0.912 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2191, allocations: 4 kB / 0.912 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2191, allocations: 4 kB / 0.912 GB, free: 52.63 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.2191, allocations: 0 / 0.912 GB, free: 52.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.2193, allocations: 55.91 kB / 0.9121 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2194, allocations: 4 kB / 0.9121 GB, free: 52.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.2196, allocations: 36.02 kB / 0.9121 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.2196, allocations: 12 kB / 0.9121 GB, free: 52.53 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 ($PRE.con.hys.y,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.0001391/0.2197, allocations: 169.6 kB / 0.9123 GB, free: 52.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.098e-05/0.2198, allocations: 35.53 kB / 0.9123 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.605e-05/0.2199, allocations: 39.34 kB / 0.9124 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2199, allocations: 4 kB / 0.9124 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2199, allocations: 4 kB / 0.9124 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2199, allocations: 0 / 0.9124 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.2202, allocations: 393.2 kB / 0.9127 GB, free: 51.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2202, allocations: 0 / 0.9127 GB, free: 51.83 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.2205, allocations: 43.97 kB / 0.9128 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.2205, allocations: 0 / 0.9128 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2205, allocations: 15.92 kB / 0.9128 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2205, allocations: 0 / 0.9128 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2205, allocations: 0 / 0.9128 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.2211, allocations: 427.7 kB / 0.9132 GB, free: 51.34 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.389e-05/0.2212, allocations: 140.5 kB / 0.9133 GB, free: 51.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.2212, allocations: 4 kB / 0.9133 GB, free: 51.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.2214, allocations: 24.05 kB / 0.9134 GB, free: 51.16 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.2215, allocations: 19.97 kB / 0.9134 GB, free: 51.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.2215, allocations: 7.938 kB / 0.9134 GB, free: 51.13 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000186/0.2217, allocations: 243.2 kB / 0.9136 GB, free: 50.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2217, allocations: 0 / 0.9136 GB, free: 50.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002836/0.222, allocations: 63.78 kB / 0.9137 GB, free: 50.83 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 8.894e-05/0.2221, allocations: 107.2 kB / 0.9138 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003883/0.2225, allocations: 211.6 kB / 0.914 GB, free: 50.51 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2225, allocations: 0 / 0.914 GB, free: 50.51 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.2227, allocations: 99.91 kB / 0.9141 GB, free: 50.41 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.2232, allocations: 85.69 kB / 0.9142 GB, free: 50.33 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2244, allocations: 0.8976 MB / 0.915 GB, free: 49.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.2246, allocations: 0.7914 MB / 0.9158 GB, free: 48.58 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.974e-05/0.2247, allocations: 31.42 kB / 0.9159 GB, free: 48.55 MB / 0.6042 GB Notification: Performance of SimCode: time 3.81e-07/0.2247, allocations: 0 / 0.9159 GB, free: 48.55 MB / 0.6042 GB Notification: Performance of Templates: time 0.005575/0.2303, allocations: 4.166 MB / 0.9199 GB, free: 44.4 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)