Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008644/0.0008644, allocations: 100 kB / 15.05 MB, free: 1.105 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.000875/0.000875, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9856/0.9856, allocations: 143.3 MB / 434.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003002, allocations: 8 kB / 0.5159 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1398, allocations: 83.41 MB / 0.5973 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.003337/0.1431, allocations: 3.379 MB / 0.6006 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.1448, allocations: 1.243 MB / 0.6019 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.1451, allocations: 23.88 kB / 0.6019 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.251e-05/0.1452, allocations: 59.36 kB / 0.6019 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00049/0.1457, allocations: 219.3 kB / 0.6021 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.1463, allocations: 306.5 kB / 0.6024 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006441/0.1469, allocations: 0.5861 MB / 0.603 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003686/0.1473, allocations: 295.6 kB / 0.6033 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1475, allocations: 238.9 kB / 0.6035 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.1478, allocations: 242.6 kB / 0.6038 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.145e-05/0.1479, allocations: 28 kB / 0.6038 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.1479, allocations: 20 kB / 0.6038 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.148, allocations: 91.55 kB / 0.6039 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1481, allocations: 153.3 kB / 0.604 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005985/0.1487, allocations: 0.8611 MB / 0.6049 GB, free: 48 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1487, allocations: 0 / 0.6049 GB, free: 48 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.072e-06/0.1487, allocations: 3.938 kB / 0.6049 GB, free: 44 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.1487, allocations: 0 / 0.6049 GB, free: 44 kB / 0.4981 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.2857/0.4345, allocations: 0.9553 MB / 0.6058 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4345, allocations: 8.469 kB / 0.6058 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002018/0.4347, allocations: 103.4 kB / 0.6059 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.4349, allocations: 82.97 kB / 0.606 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.4358, allocations: 0.5401 MB / 0.6065 GB, free: 40.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.4358, allocations: 40.88 kB / 0.6066 GB, free: 40.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.4359, allocations: 58.75 kB / 0.6066 GB, free: 40.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009887/0.4369, allocations: 0.6049 MB / 0.6072 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.4369, allocations: 3.281 kB / 0.6072 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.264e-05/0.437, allocations: 27.81 kB / 0.6072 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.437, allocations: 14.72 kB / 0.6073 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000917/0.4379, allocations: 465.4 kB / 0.6077 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.4405, allocations: 2.017 MB / 0.6097 GB, free: 39.42 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008053/0.4413, allocations: 459 kB / 0.6101 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.4414, allocations: 7.219 kB / 0.6101 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.4419, allocations: 260.4 kB / 0.6104 GB, free: 39.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 3.196e-06/0.4419, allocations: 3.094 kB / 0.6104 GB, free: 39.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001183/0.4431, allocations: 0.5939 MB / 0.6109 GB, free: 39.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.4432, allocations: 60.36 kB / 0.611 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004394/0.4436, allocations: 447.1 kB / 0.6114 GB, free: 39.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.4436, allocations: 35.86 kB / 0.6115 GB, free: 39.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.4439, allocations: 330.5 kB / 0.6118 GB, free: 38.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.444, allocations: 157.5 kB / 0.6119 GB, free: 38.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.4441, allocations: 11.34 kB / 0.6119 GB, free: 38.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4442, allocations: 365.7 kB / 0.6123 GB, free: 38.44 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.4446, allocations: 174.4 kB / 0.6125 GB, free: 38.44 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003845/0.445, allocations: 248.4 kB / 0.6127 GB, free: 38.37 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.4454, allocations: 224.1 kB / 0.6129 GB, free: 38.33 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4454, allocations: 2.812 kB / 0.6129 GB, free: 38.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008775/0.4463, allocations: 0.5709 MB / 0.6135 GB, free: 38.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.4463, allocations: 35.48 kB / 0.6135 GB, free: 38.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4463, allocations: 7.719 kB / 0.6135 GB, free: 38.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.4464, allocations: 5.938 kB / 0.6135 GB, free: 38.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.4468, allocations: 110.6 kB / 0.6136 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.4469, allocations: 13.66 kB / 0.6136 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.4472, allocations: 74.55 kB / 0.6137 GB, free: 38.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.4472, allocations: 18.34 kB / 0.6137 GB, free: 38.13 MB / 0.4981 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.000241/0.4475, allocations: 201.8 kB / 0.6139 GB, free: 38.01 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.4476, allocations: 58 kB / 0.614 GB, free: 37.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.4477, allocations: 64.47 kB / 0.614 GB, free: 37.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.4477, allocations: 6.531 kB / 0.614 GB, free: 37.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.4477, allocations: 6.688 kB / 0.614 GB, free: 37.97 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4478, allocations: 0 / 0.614 GB, free: 37.97 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.4494, allocations: 1.193 MB / 0.6152 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4494, allocations: 1.062 kB / 0.6152 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.4499, allocations: 98.14 kB / 0.6153 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.4499, allocations: 3 kB / 0.6153 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.4499, allocations: 7 kB / 0.6153 GB, free: 37.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.45, allocations: 2.281 kB / 0.6153 GB, free: 37.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.45, allocations: 7.891 kB / 0.6153 GB, free: 37.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.4511, allocations: 0.7702 MB / 0.6161 GB, free: 37.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.4513, allocations: 178.8 kB / 0.6162 GB, free: 36.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.997e-05/0.4514, allocations: 11.5 kB / 0.6163 GB, free: 36.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.4517, allocations: 28.33 kB / 0.6163 GB, free: 36.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.055e-05/0.4518, allocations: 43.3 kB / 0.6163 GB, free: 36.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.4518, allocations: 9.25 kB / 0.6163 GB, free: 36.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002877/0.4521, allocations: 304.3 kB / 0.6166 GB, free: 36.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4521, allocations: 5.422 kB / 0.6166 GB, free: 36.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004368/0.4525, allocations: 142.6 kB / 0.6168 GB, free: 36.67 MB / 0.4981 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.001339/0.4539, allocations: 1.327 MB / 0.6181 GB, free: 35.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008029/0.4547, allocations: 493.4 kB / 0.6185 GB, free: 35.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4547, allocations: 0 / 0.6185 GB, free: 35.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.4551, allocations: 222 kB / 0.6187 GB, free: 35.45 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.4557, allocations: 139 kB / 0.6189 GB, free: 35.42 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005446/0.4612, allocations: 4.765 MB / 0.6235 GB, free: 32.28 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.4615, allocations: 0.9002 MB / 0.6244 GB, free: 31.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002742/0.4618, allocations: 70.05 kB / 0.6245 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.462, allocations: 219.3 kB / 0.6247 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.462, allocations: 0 / 0.6247 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.4839, allocations: 10.65 MB / 0.6351 GB, free: 30.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.4841, allocations: 202.4 kB / 0.6353 GB, free: 30.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.293, allocations: 0 / 0.6353 GB, free: 30.43 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: