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.001554/0.001554, allocations: 108 kB / 15.61 MB, free: 152 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.001782/0.001782, allocations: 197 kB / 16.53 MB, free: 6.664 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002082/0.002082, allocations: 278.6 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 0.9445/0.9445, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 95.56 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1285, allocations: 86.98 MB / 0.6803 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.00501/0.1335, allocations: 4.115 MB / 0.6843 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.136, allocations: 1.313 MB / 0.6856 GB, free: 11.17 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.1365, allocations: 31.81 kB / 0.6856 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.1368, allocations: 126.7 kB / 0.6857 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.1372, allocations: 182.4 kB / 0.6859 GB, free: 10.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008046/0.138, allocations: 421.5 kB / 0.6863 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000775/0.1388, allocations: 0.9516 MB / 0.6872 GB, free: 9.473 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005827/0.1394, allocations: 470 kB / 0.6877 GB, free: 8.992 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002895/0.1397, allocations: 322.8 kB / 0.688 GB, free: 8.676 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.14, allocations: 338.4 kB / 0.6883 GB, free: 8.344 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.1401, allocations: 92 kB / 0.6884 GB, free: 8.254 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1402, allocations: 91.94 kB / 0.6885 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1404, allocations: 175.5 kB / 0.6887 GB, free: 7.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002922/0.1407, allocations: 394 kB / 0.689 GB, free: 7.605 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00084/0.1415, allocations: 1.032 MB / 0.69 GB, free: 6.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1415, allocations: 4 kB / 0.69 GB, free: 6.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1415, allocations: 0 / 0.69 GB, free: 6.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.1415, allocations: 0 / 0.69 GB, free: 6.566 MB / 494.1 MB 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.001735/0.1433, allocations: 1.069 MB / 0.6911 GB, free: 5.438 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1433, allocations: 8.031 kB / 0.6911 GB, free: 5.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.1435, allocations: 106.7 kB / 0.6912 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.1436, allocations: 83.91 kB / 0.6913 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007987/0.1444, allocations: 0.5494 MB / 0.6918 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.1444, allocations: 45.69 kB / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.269e-05/0.1445, allocations: 60.36 kB / 0.6919 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009615/0.1455, allocations: 0.6077 MB / 0.6925 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1455, allocations: 0 / 0.6925 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.253e-05/0.1456, allocations: 28 kB / 0.6925 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.1456, allocations: 12 kB / 0.6925 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009341/0.1465, allocations: 457 kB / 0.693 GB, free: 3.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.1491, allocations: 2.024 MB / 0.695 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008608/0.1499, allocations: 449.6 kB / 0.6954 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.1504, allocations: 234.1 kB / 0.6956 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.1504, allocations: 8.375 kB / 0.6956 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000525/0.1509, allocations: 265.3 kB / 0.6959 GB, free: 388 kB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 1.834e-06/0.151, allocations: 0 / 0.6959 GB, free: 388 kB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001232/0.1522, allocations: 0.5881 MB / 0.6964 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.1522, allocations: 59.84 kB / 0.6965 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.1527, allocations: 442 kB / 0.6969 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.1527, allocations: 33.7 kB / 0.697 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.1529, allocations: 329 kB / 0.6973 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.153, allocations: 169.5 kB / 0.6974 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.1532, allocations: 90.25 kB / 0.6975 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1533, allocations: 362.8 kB / 0.6979 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.1537, allocations: 169 kB / 0.698 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.1541, allocations: 249.8 kB / 0.6983 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000766/0.1549, allocations: 448 kB / 0.6987 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1549, allocations: 0 / 0.6987 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009736/0.1559, allocations: 0.5662 MB / 0.6992 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.1559, allocations: 33.7 kB / 0.6993 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1559, allocations: 3.938 kB / 0.6993 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1559, allocations: 4 kB / 0.6993 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.1564, allocations: 120.1 kB / 0.6994 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1564, allocations: 7.938 kB / 0.6994 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/0.1567, allocations: 59.5 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.1568, allocations: 16 kB / 0.6995 GB, free: 12.55 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 (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.0002173/0.157, allocations: 203.8 kB / 0.6997 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.1571, allocations: 67.17 kB / 0.6997 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.1572, allocations: 61.59 kB / 0.6998 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.1572, allocations: 8 kB / 0.6998 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1572, allocations: 0 / 0.6998 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1572, allocations: 7.984 kB / 0.6998 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.1588, allocations: 1.177 MB / 0.701 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1588, allocations: 3.938 kB / 0.701 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004692/0.1593, allocations: 99.88 kB / 0.7011 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.1593, allocations: 0 / 0.7011 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.1593, allocations: 8 kB / 0.7011 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1594, allocations: 4 kB / 0.7011 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1594, allocations: 3.938 kB / 0.7011 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.1606, allocations: 0.7563 MB / 0.7018 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.1608, allocations: 172.3 kB / 0.702 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.1609, allocations: 12 kB / 0.702 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.1612, allocations: 19.97 kB / 0.702 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/0.1613, allocations: 40.33 kB / 0.702 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.1613, allocations: 19.98 kB / 0.7021 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002992/0.1616, allocations: 306.9 kB / 0.7024 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1616, allocations: 4 kB / 0.7024 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003955/0.162, allocations: 139.4 kB / 0.7025 GB, free: 9.367 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 (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.001501/0.1635, allocations: 1.324 MB / 0.7038 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.1646, allocations: 0.497 MB / 0.7043 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1646, allocations: 0.5 kB / 0.7043 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.165, allocations: 214.4 kB / 0.7045 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007221/0.1657, allocations: 160.4 kB / 0.7046 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006496/0.1722, allocations: 4.883 MB / 0.7094 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.1726, allocations: 0.8976 MB / 0.7103 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00025/0.1729, allocations: 68.58 kB / 0.7103 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/0.1732, allocations: 215.4 kB / 0.7105 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of SimCode: time 4.5e-07/0.1732, allocations: 0 / 0.7105 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.2019, allocations: 11.13 MB / 0.7214 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/7.404, allocations: 12.67 kB / 0.7214 GB, free: 5.965 MB / 0.5137 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)