Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.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.AssertPower,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",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.001091/0.001091, allocations: 105.4 kB / 15.7 MB, free: 24 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.001069/0.001069, allocations: 199.5 kB / 16.64 MB, free: 6.453 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.329/1.329, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.68/1.68, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.0016/0.0016, allocations: 71.89 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.224, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004572/0.2287, allocations: 2.436 MB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002488/0.2312, allocations: 1.43 MB / 0.7874 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.2315, allocations: 4 kB / 0.7874 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0007284/0.2323, allocations: 231.4 kB / 0.7876 GB, free: 9.133 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.0005086/0.2328, allocations: 155.2 kB / 0.7878 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.2333, allocations: 155.6 kB / 0.7879 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005135/0.2338, allocations: 346.9 kB / 0.7883 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.2341, allocations: 92.7 kB / 0.7884 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000323/0.2344, allocations: 135.3 kB / 0.7885 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.2347, allocations: 155.3 kB / 0.7886 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.2348, allocations: 24 kB / 0.7887 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.235, allocations: 71.91 kB / 0.7887 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.2351, allocations: 123.5 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.2353, allocations: 186.6 kB / 0.789 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005908/0.2359, allocations: 0.502 MB / 0.7895 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2359, allocations: 4 kB / 0.7895 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.236, allocations: 0 / 0.7895 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.648e-05/0.236, allocations: 0 / 0.7895 GB, free: 7.203 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001357/0.2373, allocations: 0.8084 MB / 0.7903 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2374, allocations: 8.031 kB / 0.7903 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.2375, allocations: 42.73 kB / 0.7904 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.2376, allocations: 64.12 kB / 0.7904 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.2383, allocations: 423.9 kB / 0.7908 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.2383, allocations: 20.11 kB / 0.7908 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.2384, allocations: 15.98 kB / 0.7909 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.2386, allocations: 142.7 kB / 0.791 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.2387, allocations: 0 / 0.791 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.2387, allocations: 8 kB / 0.791 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2387, allocations: 0 / 0.791 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.2389, allocations: 83.95 kB / 0.7911 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.24, allocations: 0.6406 MB / 0.7917 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.2404, allocations: 126.7 kB / 0.7918 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.376e-05/0.2405, allocations: 44.88 kB / 0.7919 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.2405, allocations: 8 kB / 0.7919 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.2407, allocations: 107.2 kB / 0.792 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.512e-06/0.2407, allocations: 0 / 0.792 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005093/0.2412, allocations: 212.9 kB / 0.7922 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.2413, allocations: 55.41 kB / 0.7922 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.2425, allocations: 0.6398 MB / 0.7929 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.679e-05/0.2426, allocations: 33.7 kB / 0.7929 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/0.2429, allocations: 264.3 kB / 0.7931 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.236e-05/0.243, allocations: 35.55 kB / 0.7932 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.2432, allocations: 57.69 kB / 0.7932 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002361/0.2434, allocations: 370.7 kB / 0.7936 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.2436, allocations: 83.89 kB / 0.7937 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.2439, allocations: 122.2 kB / 0.7938 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.2442, allocations: 124.8 kB / 0.7939 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2442, allocations: 0 / 0.7939 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006007/0.2449, allocations: 271.2 kB / 0.7942 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.2449, allocations: 8 kB / 0.7942 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2449, allocations: 0 / 0.7942 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2449, allocations: 3.984 kB / 0.7942 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.2452, allocations: 35.92 kB / 0.7942 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2452, allocations: 4 kB / 0.7942 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.2455, allocations: 27.83 kB / 0.7942 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.2455, allocations: 16.02 kB / 0.7943 GB, free: 2.105 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,assPow.minPow.y,$PRE.assPow.minPow.y,assPow.maxPow.y,$PRE.assPow.maxPow.y,assPow.assMesDP.u,assPow.assMesP.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0002834/0.2458, allocations: 201.7 kB / 0.7944 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.2459, allocations: 51.34 kB / 0.7945 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.2461, allocations: 56.66 kB / 0.7945 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2461, allocations: 4 kB / 0.7945 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2461, allocations: 0 / 0.7945 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2461, allocations: 7.922 kB / 0.7946 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/0.2467, allocations: 385.1 kB / 0.7949 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2467, allocations: 4 kB / 0.7949 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.224e-05/0.2468, allocations: 8 kB / 0.7949 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2468, allocations: 0 / 0.7949 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.2468, allocations: 4 kB / 0.7949 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2468, allocations: 0 / 0.7949 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2468, allocations: 4 kB / 0.7949 GB, free: 1.336 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.2475, allocations: 260.3 kB / 0.7952 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.2478, allocations: 132.5 kB / 0.7953 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/0.2478, allocations: 8.062 kB / 0.7953 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.248, allocations: 11.98 kB / 0.7953 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.2482, allocations: 27.91 kB / 0.7954 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.2482, allocations: 4 kB / 0.7954 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007585/0.249, allocations: 430.8 kB / 0.7958 GB, free: 456 kB / 0.6075 GB Notification: Performance of sort global known variables: time 3.81e-07/0.249, allocations: 0 / 0.7958 GB, free: 456 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004993/0.2495, allocations: 67.83 kB / 0.7958 GB, free: 388 kB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (PEleDem.tab.nextTimeEventScaled,assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.002345/0.2519, allocations: 1.107 MB / 0.7969 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004707/0.2523, allocations: 151.9 kB / 0.7971 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.525e-06/0.2524, allocations: 4 kB / 0.7971 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.2525, allocations: 59.92 kB / 0.7971 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.2531, allocations: 77.86 kB / 0.7972 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007415/0.2606, allocations: 3.788 MB / 0.8009 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007774/0.2614, allocations: 0.8583 MB / 0.8017 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002005/0.2616, allocations: 38.27 kB / 0.8018 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/0.2619, allocations: 163.4 kB / 0.8019 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of SimCode: time 9.42e-07/0.262, allocations: 0 / 0.8019 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.3054, allocations: 9.099 MB / 0.8108 GB, free: 1.227 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.135/8.44, allocations: 18.47 kB / 0.8108 GB, free: 1.211 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1)