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.006187/0.006187, allocations: 99.77 kB / 15.73 MB, free: 5.98 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.001717/0.001717, allocations: 194.7 kB / 16.68 MB, free: 5.91 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002645/0.002645, allocations: 282 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.277/1.277, allocations: 178.6 MB / 0.5074 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003022/0.003022, allocations: 99.84 kB / 0.6943 GB, free: 15.25 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4314/0.4345, allocations: 89.13 MB / 0.7813 GB, free: 1.141 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005863/0.4404, allocations: 4.127 MB / 0.7853 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003266/0.4437, allocations: 1.321 MB / 0.7866 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008916/0.4446, allocations: 24.94 kB / 0.7867 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005931/0.4453, allocations: 127.6 kB / 0.7868 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0008239/0.4462, allocations: 179 kB / 0.7869 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.4475, allocations: 414.4 kB / 0.7873 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001607/0.4491, allocations: 0.9591 MB / 0.7883 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009631/0.4501, allocations: 459.6 kB / 0.7887 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006578/0.4508, allocations: 326.5 kB / 0.789 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.4514, allocations: 339.8 kB / 0.7894 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002591/0.4517, allocations: 91.78 kB / 0.7894 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.452, allocations: 89.84 kB / 0.7895 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.4522, allocations: 175.1 kB / 0.7897 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006327/0.4528, allocations: 396.4 kB / 0.7901 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.4545, allocations: 1.063 MB / 0.7911 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4546, allocations: 1.125 kB / 0.7911 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4546, allocations: 0 / 0.7911 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.85e-05/0.4546, allocations: 0 / 0.7911 GB, free: 9.512 MB / 0.5606 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.002725/0.4573, allocations: 1.102 MB / 0.7922 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4574, allocations: 9.688 kB / 0.7922 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001875/0.4576, allocations: 101.8 kB / 0.7923 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.4578, allocations: 86.36 kB / 0.7924 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.4591, allocations: 0.5745 MB / 0.7929 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/0.4591, allocations: 45.38 kB / 0.793 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.4593, allocations: 58.34 kB / 0.793 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.4607, allocations: 0.6149 MB / 0.7936 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.688e-05/0.4608, allocations: 3.953 kB / 0.7936 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-05/0.4609, allocations: 26.22 kB / 0.7937 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.4609, allocations: 13.56 kB / 0.7937 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.4621, allocations: 461.9 kB / 0.7941 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.466, allocations: 2.001 MB / 0.7961 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.4671, allocations: 445.7 kB / 0.7965 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005373/0.4677, allocations: 236.9 kB / 0.7967 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.4678, allocations: 6.25 kB / 0.7967 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006643/0.4685, allocations: 265.6 kB / 0.797 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 3.536e-06/0.4685, allocations: 0 / 0.797 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001552/0.47, allocations: 0.5838 MB / 0.7975 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.4701, allocations: 65.67 kB / 0.7976 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007149/0.4709, allocations: 443.3 kB / 0.798 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.381e-05/0.4709, allocations: 33.11 kB / 0.7981 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000321/0.4713, allocations: 329.1 kB / 0.7984 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.4715, allocations: 170.1 kB / 0.7985 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.4717, allocations: 90.75 kB / 0.7986 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001919/0.4719, allocations: 367.1 kB / 0.799 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.4724, allocations: 168.8 kB / 0.7991 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.4729, allocations: 248.6 kB / 0.7994 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009542/0.4738, allocations: 456.2 kB / 0.7998 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.4739, allocations: 1.375 kB / 0.7998 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001349/0.4752, allocations: 0.5657 MB / 0.8004 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.4753, allocations: 36.86 kB / 0.8004 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.4753, allocations: 2.469 kB / 0.8004 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.4754, allocations: 5.188 kB / 0.8004 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.4759, allocations: 109 kB / 0.8005 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.4759, allocations: 9.031 kB / 0.8005 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.4764, allocations: 73.59 kB / 0.8006 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.4765, allocations: 18.75 kB / 0.8006 GB, free: 2.648 MB / 0.5606 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.0004191/0.4769, allocations: 210.3 kB / 0.8008 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.4771, allocations: 62.34 kB / 0.8009 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.4773, allocations: 62.02 kB / 0.8009 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4773, allocations: 5.281 kB / 0.8009 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.4773, allocations: 1.312 kB / 0.8009 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4773, allocations: 0 / 0.8009 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.4797, allocations: 1.183 MB / 0.8021 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.4798, allocations: 0 / 0.8021 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005354/0.4803, allocations: 96.36 kB / 0.8022 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.4803, allocations: 1.375 kB / 0.8022 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.4804, allocations: 11.17 kB / 0.8022 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4804, allocations: 6.406 kB / 0.8022 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4804, allocations: 0 / 0.8022 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.4822, allocations: 0.7632 MB / 0.8029 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004098/0.4826, allocations: 179.9 kB / 0.8031 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.4828, allocations: 11.03 kB / 0.8031 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.4832, allocations: 22.44 kB / 0.8031 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.4833, allocations: 40.36 kB / 0.8032 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.4834, allocations: 13.16 kB / 0.8032 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005425/0.4839, allocations: 312 kB / 0.8035 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4839, allocations: 0 / 0.8035 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008384/0.4848, allocations: 141.3 kB / 0.8036 GB, free: 0.5703 MB / 0.5606 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.002831/0.4876, allocations: 1.32 MB / 0.8049 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001536/0.4892, allocations: 489.7 kB / 0.8054 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/0.4892, allocations: 0 / 0.8054 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006378/0.4899, allocations: 214.9 kB / 0.8056 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.4913, allocations: 148.9 kB / 0.8057 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.5026, allocations: 4.804 MB / 0.8104 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/0.5033, allocations: 0.886 MB / 0.8113 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000398/0.5037, allocations: 68.58 kB / 0.8114 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.5041, allocations: 215.4 kB / 0.8116 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of SimCode: time 4.018e-06/0.5041, allocations: 4 kB / 0.8116 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0449/0.549, allocations: 11.34 MB / 0.8226 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.905/9.454, allocations: 18.33 kB / 0.8227 GB, free: 13.95 MB / 0.5919 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)