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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 197.8 kB / 16.54 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002621/0.002621, allocations: 294.9 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.102/1.102, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002876/0.002876, allocations: 104.4 kB / 0.6065 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.15, allocations: 89.14 MB / 0.6936 GB, free: 4.23 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.006181/0.1562, allocations: 4.122 MB / 0.6976 GB, free: 96 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.1588, allocations: 1.321 MB / 0.6989 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.1591, allocations: 27.88 kB / 0.6989 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.1594, allocations: 126.7 kB / 0.6991 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.1598, allocations: 180.8 kB / 0.6992 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008565/0.1607, allocations: 420.7 kB / 0.6996 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009625/0.1616, allocations: 0.9593 MB / 0.7006 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006575/0.1623, allocations: 462.3 kB / 0.701 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.1627, allocations: 318.8 kB / 0.7013 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003715/0.1631, allocations: 342.3 kB / 0.7016 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.1632, allocations: 92 kB / 0.7017 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.1633, allocations: 88 kB / 0.7018 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1635, allocations: 179.4 kB / 0.702 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003734/0.1639, allocations: 394 kB / 0.7024 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000984/0.1649, allocations: 1.032 MB / 0.7034 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1649, allocations: 4 kB / 0.7034 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1649, allocations: 0 / 0.7034 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.1649, allocations: 0 / 0.7034 GB, free: 10.18 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.001907/0.1668, allocations: 1.077 MB / 0.7044 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1669, allocations: 8.031 kB / 0.7044 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.167, allocations: 102.7 kB / 0.7045 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1671, allocations: 80 kB / 0.7046 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008628/0.168, allocations: 0.5533 MB / 0.7051 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.1681, allocations: 41.69 kB / 0.7052 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.1682, allocations: 56.38 kB / 0.7052 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.1693, allocations: 0.6194 MB / 0.7058 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1693, allocations: 3.906 kB / 0.7058 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.519e-05/0.1694, allocations: 24 kB / 0.7059 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.1694, allocations: 12 kB / 0.7059 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.1705, allocations: 461 kB / 0.7063 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.1735, allocations: 2.016 MB / 0.7083 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009862/0.1745, allocations: 456.3 kB / 0.7087 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000488/0.175, allocations: 242.5 kB / 0.7089 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.1751, allocations: 4.438 kB / 0.709 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000616/0.1757, allocations: 261.3 kB / 0.7092 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.1757, allocations: 0 / 0.7092 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001394/0.1771, allocations: 0.5843 MB / 0.7098 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.1772, allocations: 59.84 kB / 0.7098 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005437/0.1777, allocations: 438.1 kB / 0.7102 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.1778, allocations: 37.7 kB / 0.7103 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.1781, allocations: 332.9 kB / 0.7106 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.1782, allocations: 165.7 kB / 0.7108 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.1784, allocations: 94.23 kB / 0.7108 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1786, allocations: 362.8 kB / 0.7112 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.179, allocations: 165 kB / 0.7114 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004794/0.1795, allocations: 257.8 kB / 0.7116 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008922/0.1804, allocations: 448 kB / 0.712 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1804, allocations: 0 / 0.712 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00116/0.1816, allocations: 0.5701 MB / 0.7126 GB, free: 412 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.1816, allocations: 37.64 kB / 0.7126 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1816, allocations: 0 / 0.7126 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1816, allocations: 4 kB / 0.7126 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000512/0.1822, allocations: 112.1 kB / 0.7127 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.1822, allocations: 11.94 kB / 0.7127 GB, free: 240 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.1825, allocations: 59.5 kB / 0.7128 GB, free: 180 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.1826, allocations: 16 kB / 0.7128 GB, free: 164 kB / 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002711/0.1829, allocations: 202.5 kB / 0.713 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.993e-05/0.1829, allocations: 59.28 kB / 0.7131 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.1831, allocations: 65.58 kB / 0.7131 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1831, allocations: 8 kB / 0.7131 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.1831, allocations: 0 / 0.7131 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1831, allocations: 11.92 kB / 0.7131 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/0.185, allocations: 1.17 MB / 0.7143 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.185, allocations: 0 / 0.7143 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005122/0.1855, allocations: 95.89 kB / 0.7144 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.1855, allocations: 3.984 kB / 0.7144 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/0.1856, allocations: 12 kB / 0.7144 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.194e-06/0.1856, allocations: 7.938 kB / 0.7144 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.1856, allocations: 7.938 kB / 0.7144 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.187, allocations: 0.764 MB / 0.7152 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.1872, allocations: 168.3 kB / 0.7153 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.84e-05/0.1873, allocations: 12 kB / 0.7153 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.1876, allocations: 23.97 kB / 0.7153 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/0.1877, allocations: 32.39 kB / 0.7154 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.1878, allocations: 16 kB / 0.7154 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003662/0.1881, allocations: 310.9 kB / 0.7157 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1881, allocations: 0 / 0.7157 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004506/0.1886, allocations: 143.5 kB / 0.7158 GB, free: 12.97 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001773/0.1904, allocations: 1.321 MB / 0.7171 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.1915, allocations: 0.4892 MB / 0.7176 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1916, allocations: 0 / 0.7176 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004553/0.192, allocations: 218.9 kB / 0.7178 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.1928, allocations: 157.3 kB / 0.718 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00786/0.2007, allocations: 4.886 MB / 0.7227 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.2013, allocations: 0.8899 MB / 0.7236 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003081/0.2016, allocations: 68.58 kB / 0.7237 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.2019, allocations: 219.4 kB / 0.7239 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of SimCode: time 8.31e-07/0.2019, allocations: 0 / 0.7239 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03698/0.2389, allocations: 11.13 MB / 0.7347 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.963/8.202, allocations: 19.44 kB / 0.7348 GB, free: 9.562 MB / 0.5294 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)