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.001494/0.001495, allocations: 105.4 kB / 15.7 MB, free: 28 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.001945/0.001945, allocations: 194.3 kB / 16.64 MB, free: 6.48 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.484/1.484, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.716/1.716, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001405/0.001405, allocations: 65.86 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2336, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.006317/0.24, allocations: 2.468 MB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004039/0.244, allocations: 1.481 MB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002592/0.2443, allocations: 7.938 kB / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.2456, allocations: 330.3 kB / 0.7878 GB, free: 8.941 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.0007661/0.2464, allocations: 207.1 kB / 0.788 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000901/0.2473, allocations: 238.8 kB / 0.7882 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006654/0.248, allocations: 382.8 kB / 0.7886 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.2483, allocations: 84.62 kB / 0.7887 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003286/0.2486, allocations: 155.3 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.249, allocations: 163.2 kB / 0.789 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.2491, allocations: 16 kB / 0.789 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.2494, allocations: 87.95 kB / 0.7891 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.2496, allocations: 135.4 kB / 0.7892 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.2498, allocations: 182.7 kB / 0.7894 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007186/0.2505, allocations: 0.4942 MB / 0.7899 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2506, allocations: 0 / 0.7899 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2506, allocations: 0 / 0.7899 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.259e-05/0.2506, allocations: 0 / 0.7899 GB, free: 6.824 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.001607/0.2522, allocations: 0.8374 MB / 0.7907 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.2523, allocations: 8.031 kB / 0.7907 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.919e-05/0.2523, allocations: 54.66 kB / 0.7908 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2525, allocations: 60.19 kB / 0.7908 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006172/0.2531, allocations: 432.7 kB / 0.7912 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2531, allocations: 4 kB / 0.7912 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.2531, allocations: 12 kB / 0.7912 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.2534, allocations: 143.3 kB / 0.7914 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2534, allocations: 0 / 0.7914 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.2535, allocations: 8 kB / 0.7914 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2535, allocations: 3.938 kB / 0.7914 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.2536, allocations: 67.95 kB / 0.7915 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007902/0.2544, allocations: 0.5705 MB / 0.792 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.2547, allocations: 122.7 kB / 0.7921 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.2548, allocations: 52.83 kB / 0.7922 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2549, allocations: 0 / 0.7922 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.2551, allocations: 115.5 kB / 0.7923 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.2551, allocations: 7.938 kB / 0.7923 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.000486/0.2556, allocations: 235.4 kB / 0.7925 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.2557, allocations: 77.11 kB / 0.7926 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006803/0.2563, allocations: 0.6876 MB / 0.7933 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2564, allocations: 33.7 kB / 0.7933 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.2566, allocations: 260.3 kB / 0.7935 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.2566, allocations: 35.55 kB / 0.7936 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.2567, allocations: 65.59 kB / 0.7936 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2568, allocations: 374.8 kB / 0.794 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.257, allocations: 67.97 kB / 0.7941 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.2572, allocations: 127.9 kB / 0.7942 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.2574, allocations: 141.6 kB / 0.7943 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2574, allocations: 0 / 0.7943 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004033/0.2578, allocations: 260.9 kB / 0.7946 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2579, allocations: 8 kB / 0.7946 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2579, allocations: 0 / 0.7946 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2579, allocations: 4 kB / 0.7946 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.2581, allocations: 35.92 kB / 0.7946 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2581, allocations: 8.062 kB / 0.7946 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.2582, allocations: 15.89 kB / 0.7946 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.2583, allocations: 15.98 kB / 0.7947 GB, free: 1.656 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.0001959/0.2585, allocations: 211.5 kB / 0.7949 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-05/0.2585, allocations: 63.19 kB / 0.7949 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.336e-05/0.2586, allocations: 57.05 kB / 0.795 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2586, allocations: 0 / 0.795 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2586, allocations: 0 / 0.795 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2586, allocations: 4 kB / 0.795 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003152/0.259, allocations: 381.3 kB / 0.7953 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.259, allocations: 48 / 0.7953 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.259, allocations: 7.984 kB / 0.7953 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.259, allocations: 4 kB / 0.7953 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.259, allocations: 3.984 kB / 0.7954 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2591, allocations: 3.938 kB / 0.7954 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2591, allocations: 0 / 0.7954 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003361/0.2594, allocations: 228.3 kB / 0.7956 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.677e-05/0.2595, allocations: 124.4 kB / 0.7957 GB, free: 500 kB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.2596, allocations: 8 kB / 0.7957 GB, free: 492 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.2597, allocations: 11.98 kB / 0.7957 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.2597, allocations: 15.97 kB / 0.7957 GB, free: 464 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.2598, allocations: 8 kB / 0.7957 GB, free: 456 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004759/0.2602, allocations: 467.1 kB / 0.7962 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2603, allocations: 3.938 kB / 0.7962 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002942/0.2606, allocations: 75.86 kB / 0.7963 GB, free: 15.91 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.001424/0.262, allocations: 1.078 MB / 0.7973 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003461/0.2623, allocations: 151.9 kB / 0.7975 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2624, allocations: 0 / 0.7975 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.2625, allocations: 56.97 kB / 0.7975 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.263, allocations: 93.66 kB / 0.7976 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004388/0.2674, allocations: 3.884 MB / 0.8014 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.2678, allocations: 0.8661 MB / 0.8022 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001458/0.268, allocations: 50.95 kB / 0.8023 GB, free: 9.754 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.2682, allocations: 167.4 kB / 0.8024 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of SimCode: time 5.11e-07/0.2682, allocations: 0 / 0.8024 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0257/0.2939, allocations: 9.678 MB / 0.8119 GB, free: 96 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/8.081, allocations: 7.922 kB / 0.8119 GB, free: 88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)