Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.001383/0.001383, allocations: 109.4 kB / 15.69 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.001628/0.001629, allocations: 187.1 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.637/1.637, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002408, allocations: 75.41 kB / 0.6718 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2364, allocations: 114.5 MB / 0.7836 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004043/0.2405, allocations: 2.461 MB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2426, allocations: 1.484 MB / 0.7875 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.2428, allocations: 8 kB / 0.7875 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008705/0.2437, allocations: 323.5 kB / 0.7878 GB, free: 9 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004188/0.2441, allocations: 207.1 kB / 0.788 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005751/0.2447, allocations: 242.9 kB / 0.7882 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.2451, allocations: 390.7 kB / 0.7886 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2453, allocations: 68.62 kB / 0.7887 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.2455, allocations: 159.3 kB / 0.7888 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.2457, allocations: 163.2 kB / 0.789 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.2458, allocations: 16 kB / 0.789 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.2459, allocations: 87.88 kB / 0.7891 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2461, allocations: 123.6 kB / 0.7892 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.2463, allocations: 194.5 kB / 0.7894 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.2468, allocations: 0.4942 MB / 0.7899 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2468, allocations: 3.938 kB / 0.7899 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2468, allocations: 0 / 0.7899 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.2468, allocations: 0 / 0.7899 GB, free: 6.879 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001226/0.248, allocations: 0.8374 MB / 0.7907 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.2481, allocations: 8.031 kB / 0.7907 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.2481, allocations: 42.73 kB / 0.7907 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.2482, allocations: 60.19 kB / 0.7908 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.2488, allocations: 440.6 kB / 0.7912 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.2488, allocations: 8 kB / 0.7912 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.239e-05/0.2489, allocations: 16 kB / 0.7912 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.2492, allocations: 131.3 kB / 0.7914 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.2492, allocations: 0 / 0.7914 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.2492, allocations: 11.98 kB / 0.7914 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.2492, allocations: 7.922 kB / 0.7914 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.2494, allocations: 67.91 kB / 0.7914 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000865/0.2503, allocations: 0.5744 MB / 0.792 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.2506, allocations: 122.8 kB / 0.7921 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.2507, allocations: 44.84 kB / 0.7922 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.2507, allocations: 4 kB / 0.7922 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.251, allocations: 118.7 kB / 0.7923 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.251, allocations: 0 / 0.7923 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0004921/0.2515, allocations: 232.8 kB / 0.7925 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.2515, allocations: 81.11 kB / 0.7926 GB, free: 3.887 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000701/0.2523, allocations: 0.6798 MB / 0.7932 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.2523, allocations: 37.7 kB / 0.7933 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.2525, allocations: 260.3 kB / 0.7935 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.2526, allocations: 43.48 kB / 0.7936 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.2526, allocations: 57.59 kB / 0.7936 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2528, allocations: 374.8 kB / 0.794 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.253, allocations: 67.97 kB / 0.794 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.2532, allocations: 131.9 kB / 0.7942 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.2534, allocations: 145.5 kB / 0.7943 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2534, allocations: 0 / 0.7943 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004311/0.2539, allocations: 264.9 kB / 0.7946 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.2539, allocations: 4.062 kB / 0.7946 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.2539, allocations: 7.984 kB / 0.7946 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2539, allocations: 4 kB / 0.7946 GB, free: 1.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.2541, allocations: 27.98 kB / 0.7946 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.2541, allocations: 4 kB / 0.7946 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.2543, allocations: 27.81 kB / 0.7946 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.2543, allocations: 8 kB / 0.7946 GB, free: 1.711 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0002241/0.2545, allocations: 215.5 kB / 0.7948 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.2546, allocations: 63.19 kB / 0.7949 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.964e-05/0.2547, allocations: 57.05 kB / 0.795 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2547, allocations: 0 / 0.795 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2547, allocations: 0 / 0.795 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2547, allocations: 0 / 0.795 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.2551, allocations: 381.3 kB / 0.7953 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2551, allocations: 0 / 0.7953 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.749e-05/0.2551, allocations: 7.938 kB / 0.7953 GB, free: 0.9375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2551, allocations: 7.984 kB / 0.7953 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.2552, allocations: 4 kB / 0.7953 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2552, allocations: 0 / 0.7953 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2552, allocations: 4 kB / 0.7953 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.2555, allocations: 216.4 kB / 0.7956 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2556, allocations: 128.4 kB / 0.7957 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.2557, allocations: 11.98 kB / 0.7957 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.2558, allocations: 4 kB / 0.7957 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.2559, allocations: 19.97 kB / 0.7957 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.2559, allocations: 8 kB / 0.7957 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004748/0.2564, allocations: 471 kB / 0.7962 GB, free: 48 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2564, allocations: 0 / 0.7962 GB, free: 48 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003211/0.2567, allocations: 71.97 kB / 0.7962 GB, free: 15.97 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001483/0.2582, allocations: 1.089 MB / 0.7973 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003485/0.2585, allocations: 151.9 kB / 0.7974 GB, free: 14.87 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2586, allocations: 0 / 0.7974 GB, free: 14.87 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.2587, allocations: 57.3 kB / 0.7975 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.2592, allocations: 96.28 kB / 0.7976 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004448/0.2636, allocations: 3.882 MB / 0.8014 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.2641, allocations: 0.8583 MB / 0.8022 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001384/0.2642, allocations: 46.95 kB / 0.8023 GB, free: 9.816 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.2644, allocations: 171.4 kB / 0.8024 GB, free: 9.648 MB / 0.6231 GB Notification: Performance of SimCode: time 5.21e-07/0.2644, allocations: 3.938 kB / 0.8024 GB, free: 9.645 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.2921, allocations: 9.68 MB / 0.8119 GB, free: 152 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.6, allocations: 7.922 kB / 0.8119 GB, free: 144 kB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)