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.001049/0.001049, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001221/0.001221, allocations: 172.7 kB / 15.95 MB, free: 208 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.631/1.631, allocations: 223.3 MB / 240 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.377/1.377, allocations: 143.4 MB / 434.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000517/0.0005172, allocations: 16 kB / 0.5161 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2366, allocations: 83.41 MB / 0.5975 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.005047/0.2417, allocations: 3.495 MB / 0.6009 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003208/0.245, allocations: 1.243 MB / 0.6022 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008774/0.2459, allocations: 23.88 kB / 0.6022 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005603/0.2465, allocations: 87.2 kB / 0.6023 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000693/0.2472, allocations: 142.8 kB / 0.6024 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.2484, allocations: 277.7 kB / 0.6027 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001427/0.2498, allocations: 0.8422 MB / 0.6035 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007092/0.2505, allocations: 303.5 kB / 0.6038 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005194/0.251, allocations: 214.9 kB / 0.604 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004837/0.2515, allocations: 250.5 kB / 0.6042 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.2517, allocations: 24 kB / 0.6042 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.2518, allocations: 20 kB / 0.6043 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.252, allocations: 95.53 kB / 0.6044 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.2522, allocations: 161.3 kB / 0.6045 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.3722/0.6245, allocations: 0.853 MB / 0.6053 GB, free: 35.85 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.814e-05/0.6246, allocations: 0.8125 kB / 0.6053 GB, free: 35.85 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.765e-06/0.6246, allocations: 0 / 0.6053 GB, free: 35.85 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.332e-05/0.6247, allocations: 0 / 0.6053 GB, free: 35.85 MB / 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.003867/0.6286, allocations: 0.9598 MB / 0.6063 GB, free: 35.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.688e-05/0.6287, allocations: 9.188 kB / 0.6063 GB, free: 35.26 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000524/0.6292, allocations: 98.86 kB / 0.6064 GB, free: 35.22 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/0.6298, allocations: 80.5 kB / 0.6065 GB, free: 35.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.6316, allocations: 0.5411 MB / 0.607 GB, free: 34.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-05/0.6317, allocations: 42.97 kB / 0.607 GB, free: 34.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.632, allocations: 60.84 kB / 0.6071 GB, free: 34.92 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.6341, allocations: 0.6058 MB / 0.6077 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.332e-05/0.6342, allocations: 3.688 kB / 0.6077 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.6343, allocations: 24.92 kB / 0.6077 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.204e-05/0.6344, allocations: 16.09 kB / 0.6077 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.6363, allocations: 464.8 kB / 0.6082 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005745/0.642, allocations: 2.022 MB / 0.6101 GB, free: 34.17 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.6435, allocations: 452.8 kB / 0.6106 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006157/0.6442, allocations: 246.6 kB / 0.6108 GB, free: 34.13 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.401e-05/0.6443, allocations: 6.031 kB / 0.6108 GB, free: 34.13 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007381/0.645, allocations: 262.8 kB / 0.6111 GB, free: 34.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 4.559e-06/0.6451, allocations: 4 kB / 0.6111 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001706/0.6468, allocations: 0.593 MB / 0.6116 GB, free: 34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.132e-05/0.6469, allocations: 62.39 kB / 0.6117 GB, free: 33.94 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.6481, allocations: 442.1 kB / 0.6121 GB, free: 33.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.017e-05/0.6482, allocations: 35.64 kB / 0.6122 GB, free: 33.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005483/0.6488, allocations: 325.9 kB / 0.6125 GB, free: 33.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.6491, allocations: 163.8 kB / 0.6126 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.6491, allocations: 9.125 kB / 0.6126 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000231/0.6494, allocations: 366 kB / 0.613 GB, free: 33.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/0.65, allocations: 176.9 kB / 0.6132 GB, free: 33.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006607/0.6506, allocations: 254.7 kB / 0.6134 GB, free: 33.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007003/0.6514, allocations: 223.9 kB / 0.6136 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.6514, allocations: 3 kB / 0.6136 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001978/0.6534, allocations: 0.5705 MB / 0.6142 GB, free: 32.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.062e-05/0.6535, allocations: 36.58 kB / 0.6142 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.6535, allocations: 2.812 kB / 0.6142 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.434e-05/0.6536, allocations: 2.969 kB / 0.6142 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007551/0.6543, allocations: 115.2 kB / 0.6143 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.793e-05/0.6544, allocations: 11.2 kB / 0.6143 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/0.6551, allocations: 71.59 kB / 0.6144 GB, free: 32.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.6553, allocations: 19.45 kB / 0.6144 GB, free: 32.92 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.0005931/0.6559, allocations: 207.3 kB / 0.6146 GB, free: 32.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.6561, allocations: 53.03 kB / 0.6147 GB, free: 32.78 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.6564, allocations: 68.45 kB / 0.6147 GB, free: 32.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.6564, allocations: 3.031 kB / 0.6147 GB, free: 32.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.162e-05/0.6564, allocations: 2.812 kB / 0.6147 GB, free: 32.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.6565, allocations: 7.938 kB / 0.6147 GB, free: 32.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.6596, allocations: 1.186 MB / 0.6159 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.6596, allocations: 0 / 0.6159 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/0.6604, allocations: 96.05 kB / 0.616 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.289e-05/0.6604, allocations: 2.656 kB / 0.616 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.56e-05/0.6605, allocations: 14.64 kB / 0.616 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.6605, allocations: 3.953 kB / 0.616 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6605, allocations: 3.188 kB / 0.616 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/0.6627, allocations: 0.7789 MB / 0.6168 GB, free: 32.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.6632, allocations: 173.4 kB / 0.6169 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.6633, allocations: 12.73 kB / 0.617 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/0.6638, allocations: 30.52 kB / 0.617 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.6641, allocations: 37.77 kB / 0.617 GB, free: 32.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.6641, allocations: 20.95 kB / 0.617 GB, free: 32.11 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007026/0.6648, allocations: 302.9 kB / 0.6173 GB, free: 32.02 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.21e-07/0.6649, allocations: 0 / 0.6173 GB, free: 32.02 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009747/0.6658, allocations: 140.5 kB / 0.6175 GB, free: 32 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.002612/0.6685, allocations: 1.33 MB / 0.6188 GB, free: 31.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001539/0.67, allocations: 488.1 kB / 0.6192 GB, free: 31.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6701, allocations: 0.5 kB / 0.6192 GB, free: 31.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006299/0.6707, allocations: 223.4 kB / 0.6194 GB, free: 31.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.6721, allocations: 153.4 kB / 0.6196 GB, free: 31.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.6844, allocations: 3.582 MB / 0.6231 GB, free: 29.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.6853, allocations: 0.8851 MB / 0.6239 GB, free: 29.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006431/0.6859, allocations: 72.67 kB / 0.624 GB, free: 29.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/0.6865, allocations: 217.9 kB / 0.6242 GB, free: 29 MB / 0.4981 GB Notification: Performance of SimCode: time 2.605e-06/0.6865, allocations: 0 / 0.6242 GB, free: 29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03499/0.7215, allocations: 10.67 MB / 0.6346 GB, free: 28.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/0.7218, allocations: 204.5 kB / 0.6348 GB, free: 28.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.261, allocations: 3 kB / 0.6348 GB, free: 28.06 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: