Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8329/0.8329, allocations: 143.4 MB / 158.3 MB, free: 5.754 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 185 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 447.7 MB, free: 4.793 MB / 330.7 MB 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: 88.33 kB / 0.5187 GB, free: 1.164 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001874/0.001874, allocations: 265.7 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.0004428, allocations: 13.38 kB / 0.6929 GB, free: 59.73 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1777, allocations: 82.8 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5356/0.7134, allocations: 115.3 MB / 0.8863 GB, free: 21.96 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.7136, allocations: 81.7 kB / 0.8864 GB, free: 21.96 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03231/0.746, allocations: 12.37 MB / 0.8985 GB, free: 20.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.767e-06/0.746, allocations: 0 / 0.8985 GB, free: 20.92 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.381e-05/0.7461, allocations: 22.09 kB / 0.8985 GB, free: 20.91 MB / 0.5417 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.00167/0.7478, allocations: 0.9557 MB / 0.8995 GB, free: 20.28 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.7478, allocations: 9.406 kB / 0.8995 GB, free: 20.28 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.7479, allocations: 102.2 kB / 0.8996 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.7481, allocations: 85.33 kB / 0.8996 GB, free: 20.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.7489, allocations: 0.531 MB / 0.9002 GB, free: 19.92 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.7489, allocations: 41.56 kB / 0.9002 GB, free: 19.92 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.52e-05/0.749, allocations: 57.75 kB / 0.9003 GB, free: 19.92 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.7503, allocations: 0.6557 MB / 0.9009 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.7503, allocations: 3.812 kB / 0.9009 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.917e-05/0.7504, allocations: 24.06 kB / 0.9009 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.7504, allocations: 14.09 kB / 0.9009 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.7515, allocations: 0.528 MB / 0.9015 GB, free: 19.78 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.7546, allocations: 2.091 MB / 0.9035 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.7558, allocations: 0.526 MB / 0.904 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.7558, allocations: 9.469 kB / 0.904 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.7565, allocations: 303.9 kB / 0.9043 GB, free: 19.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.7565, allocations: 3.938 kB / 0.9043 GB, free: 19.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.001669/0.7582, allocations: 0.7035 MB / 0.905 GB, free: 18.92 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.7583, allocations: 165.7 kB / 0.9052 GB, free: 18.73 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005541/0.7588, allocations: 391.6 kB / 0.9055 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.7589, allocations: 40.2 kB / 0.9056 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002406/0.7591, allocations: 321.3 kB / 0.9059 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.7593, allocations: 174 kB / 0.906 GB, free: 18.33 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.7593, allocations: 9.781 kB / 0.906 GB, free: 18.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.7594, allocations: 372.1 kB / 0.9064 GB, free: 18.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004498/0.7599, allocations: 202.3 kB / 0.9066 GB, free: 18.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.7604, allocations: 315.3 kB / 0.9069 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/0.7609, allocations: 251.8 kB / 0.9071 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.7609, allocations: 1.312 kB / 0.9071 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001345/0.7623, allocations: 0.6211 MB / 0.9077 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/0.7623, allocations: 41.91 kB / 0.9078 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.7623, allocations: 1.531 kB / 0.9078 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.7624, allocations: 4.531 kB / 0.9078 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006343/0.763, allocations: 117.7 kB / 0.9079 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.7631, allocations: 10.28 kB / 0.9079 GB, free: 17.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/0.7636, allocations: 80.77 kB / 0.908 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-05/0.7637, allocations: 18.42 kB / 0.908 GB, free: 17.68 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,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 (64): * Single equations (assignments): 63 * 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.0005265/0.7642, allocations: 209.9 kB / 0.9082 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.686e-05/0.7643, allocations: 57.84 kB / 0.9083 GB, free: 17.53 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/0.7645, allocations: 70.19 kB / 0.9083 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.7645, allocations: 5.906 kB / 0.9083 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.7645, allocations: 3.938 kB / 0.9083 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.7646, allocations: 7.219 kB / 0.9083 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.7666, allocations: 1.315 MB / 0.9096 GB, free: 17.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.7666, allocations: 3.938 kB / 0.9096 GB, free: 17.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005357/0.7671, allocations: 109.7 kB / 0.9097 GB, free: 17.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.7672, allocations: 1.594 kB / 0.9097 GB, free: 17.17 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/0.7672, allocations: 11.05 kB / 0.9097 GB, free: 17.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.7672, allocations: 9.688 kB / 0.9098 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7672, allocations: 0 / 0.9098 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.7688, allocations: 0.8911 MB / 0.9106 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.7691, allocations: 182.2 kB / 0.9108 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.34e-05/0.7692, allocations: 16.14 kB / 0.9108 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.7696, allocations: 49.45 kB / 0.9109 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.7697, allocations: 41 kB / 0.9109 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.7698, allocations: 12.75 kB / 0.9109 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005059/0.7703, allocations: 316 kB / 0.9112 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.21e-07/0.7703, allocations: 0 / 0.9112 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006578/0.771, allocations: 154.9 kB / 0.9114 GB, free: 16.73 MB / 0.5417 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.conPID.trigger,$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 (50): * Single equations (assignments): 48 * 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.001936/0.7729, allocations: 1.45 MB / 0.9128 GB, free: 16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001117/0.7741, allocations: 0.5516 MB / 0.9133 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7741, allocations: 0 / 0.9133 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004554/0.7745, allocations: 253.9 kB / 0.9136 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/0.7753, allocations: 138.1 kB / 0.9137 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006653/0.7819, allocations: 4.835 MB / 0.9184 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.7824, allocations: 0.905 MB / 0.9193 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000363/0.7828, allocations: 62.08 kB / 0.9194 GB, free: 28.82 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.783, allocations: 228.2 kB / 0.9196 GB, free: 28.81 MB / 0.5573 GB Notification: Performance of SimCode: time 1.383e-06/0.7831, allocations: 0 / 0.9196 GB, free: 28.81 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.8068, allocations: 11.53 MB / 0.9308 GB, free: 28.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/0.807, allocations: 189.4 kB / 0.931 GB, free: 27.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/3.045, allocations: 0 / 0.931 GB, free: 27.79 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)