Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.501/1.501, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001159/0.001159, allocations: 180.8 kB / 326.5 MB, free: 2.234 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.895/1.895, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.001039/0.001039, allocations: 98.03 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 9.438 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2171, allocations: 106.3 MB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003091/0.2202, allocations: 3.412 MB / 0.9035 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2218, allocations: 1.302 MB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.2221, allocations: 19.88 kB / 0.9048 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.481e-05/0.2222, allocations: 59.36 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.2227, allocations: 231.2 kB / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.2232, allocations: 308 kB / 0.9053 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.2237, allocations: 0.5939 MB / 0.9059 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.2241, allocations: 291.6 kB / 0.9062 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.2243, allocations: 234.9 kB / 0.9064 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.2245, allocations: 246.6 kB / 0.9067 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.683e-05/0.2245, allocations: 20 kB / 0.9067 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.317e-05/0.2246, allocations: 24 kB / 0.9067 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.744e-05/0.2247, allocations: 91.55 kB / 0.9068 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.434e-05/0.2248, allocations: 157.3 kB / 0.9069 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.2252, allocations: 0.8067 MB / 0.9077 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2252, allocations: 0 / 0.9077 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2252, allocations: 0 / 0.9077 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.2252, allocations: 0 / 0.9077 GB, free: 56.02 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001287/0.2265, allocations: 0.9523 MB / 0.9087 GB, free: 55.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2266, allocations: 12.03 kB / 0.9087 GB, free: 55 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.69e-05/0.2267, allocations: 94.52 kB / 0.9088 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.613e-05/0.2268, allocations: 90.92 kB / 0.9088 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006305/0.2274, allocations: 0.5368 MB / 0.9094 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.2274, allocations: 45.31 kB / 0.9094 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.98e-05/0.2275, allocations: 59.91 kB / 0.9095 GB, free: 54.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008706/0.2284, allocations: 0.6075 MB / 0.9101 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2284, allocations: 4 kB / 0.9101 GB, free: 53.49 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/0.2285, allocations: 24 kB / 0.9101 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.2285, allocations: 12 kB / 0.9101 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008113/0.2293, allocations: 465 kB / 0.9105 GB, free: 53 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.2315, allocations: 2.024 MB / 0.9125 GB, free: 50.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000753/0.2323, allocations: 454.2 kB / 0.913 GB, free: 50.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.2323, allocations: 4.438 kB / 0.913 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005133/0.2328, allocations: 265.3 kB / 0.9132 GB, free: 50.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.2329, allocations: 0 / 0.9132 GB, free: 50.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49): time 0.001078/0.2339, allocations: 0.5999 MB / 0.9138 GB, free: 49.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.234, allocations: 63.78 kB / 0.9139 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.2343, allocations: 438.7 kB / 0.9143 GB, free: 49.06 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.2344, allocations: 37.7 kB / 0.9143 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.2345, allocations: 324.3 kB / 0.9146 GB, free: 48.7 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.742e-05/0.2346, allocations: 165.6 kB / 0.9148 GB, free: 48.54 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.2347, allocations: 12 kB / 0.9148 GB, free: 48.52 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.513e-05/0.2347, allocations: 362.8 kB / 0.9151 GB, free: 48.16 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.2351, allocations: 165 kB / 0.9153 GB, free: 48 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.2354, allocations: 257.8 kB / 0.9155 GB, free: 47.72 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.2358, allocations: 231.8 kB / 0.9158 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2358, allocations: 0 / 0.9158 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000853/0.2366, allocations: 0.5624 MB / 0.9163 GB, free: 46.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.2367, allocations: 41.64 kB / 0.9163 GB, free: 46.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.2367, allocations: 4.25 kB / 0.9164 GB, free: 46.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2367, allocations: 8 kB / 0.9164 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004322/0.2371, allocations: 115.8 kB / 0.9165 GB, free: 46.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.2372, allocations: 4 kB / 0.9165 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.2375, allocations: 67.5 kB / 0.9165 GB, free: 46.67 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.2375, allocations: 20 kB / 0.9166 GB, free: 46.65 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002006/0.2377, allocations: 213.7 kB / 0.9168 GB, free: 46.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.2378, allocations: 59.23 kB / 0.9168 GB, free: 46.37 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.2379, allocations: 65.53 kB / 0.9169 GB, free: 46.3 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2379, allocations: 8 kB / 0.9169 GB, free: 46.3 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2379, allocations: 0 / 0.9169 GB, free: 46.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.2379, allocations: 3.984 kB / 0.9169 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.2393, allocations: 1.185 MB / 0.918 GB, free: 45.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2393, allocations: 0 / 0.918 GB, free: 45.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.2397, allocations: 99.84 kB / 0.9181 GB, free: 44.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.2397, allocations: 4 kB / 0.9181 GB, free: 44.95 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.2398, allocations: 15.98 kB / 0.9182 GB, free: 44.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2398, allocations: 0 / 0.9182 GB, free: 44.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2398, allocations: 0 / 0.9182 GB, free: 44.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2409, allocations: 0.7602 MB / 0.9189 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.241, allocations: 172.3 kB / 0.9191 GB, free: 43.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.775e-05/0.2411, allocations: 19.89 kB / 0.9191 GB, free: 43.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002763/0.2414, allocations: 39.88 kB / 0.9191 GB, free: 43.91 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.835e-05/0.2415, allocations: 40.31 kB / 0.9192 GB, free: 43.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.2415, allocations: 16 kB / 0.9192 GB, free: 43.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002505/0.2418, allocations: 302.9 kB / 0.9195 GB, free: 43.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2418, allocations: 0 / 0.9195 GB, free: 43.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003802/0.2421, allocations: 139.5 kB / 0.9196 GB, free: 43.43 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001236/0.2434, allocations: 1.325 MB / 0.9209 GB, free: 42.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007382/0.2441, allocations: 493.2 kB / 0.9214 GB, free: 41.58 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.2442, allocations: 0 / 0.9214 GB, free: 41.58 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.2445, allocations: 222.3 kB / 0.9216 GB, free: 41.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005834/0.2451, allocations: 144.4 kB / 0.9217 GB, free: 41.22 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005182/0.2503, allocations: 4.758 MB / 0.9264 GB, free: 36.38 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.2506, allocations: 0.9019 MB / 0.9272 GB, free: 35.45 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002995/0.2509, allocations: 64.58 kB / 0.9273 GB, free: 35.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.2512, allocations: 219.4 kB / 0.9275 GB, free: 35.17 MB / 0.6042 GB Notification: Performance of SimCode: time 7.61e-07/0.2512, allocations: 0 / 0.9275 GB, free: 35.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02041/0.2716, allocations: 10.65 MB / 0.9379 GB, free: 24.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/0.2717, allocations: 188 kB / 0.9381 GB, free: 24.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.42, allocations: 8 kB / 0.9381 GB, free: 24.51 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)