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.001476/0.001476, allocations: 108 kB / 15.61 MB, free: 148 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.001212/0.001212, allocations: 193.4 kB / 16.53 MB, free: 6.691 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.481/1.481, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.77/1.77, allocations: 292.3 MB / 0.5489 GB, free: 12.87 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.001982/0.001982, allocations: 67.56 kB / 0.6716 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.291, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005068/0.2962, allocations: 2.468 MB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002794/0.299, allocations: 1.481 MB / 0.7873 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.2992, allocations: 7.938 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.3003, allocations: 322.9 kB / 0.7876 GB, free: 9.109 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.0004929/0.3008, allocations: 211.1 kB / 0.7878 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/0.3015, allocations: 250.5 kB / 0.7881 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005056/0.3021, allocations: 378.8 kB / 0.7884 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.3023, allocations: 80.62 kB / 0.7885 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.3025, allocations: 155.3 kB / 0.7887 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.3028, allocations: 163.2 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.3028, allocations: 20 kB / 0.7888 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.303, allocations: 75.95 kB / 0.7889 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.3032, allocations: 135.5 kB / 0.789 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.3034, allocations: 186.6 kB / 0.7892 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.3041, allocations: 498.1 kB / 0.7897 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3041, allocations: 0 / 0.7897 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3041, allocations: 0 / 0.7897 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.3041, allocations: 0 / 0.7897 GB, free: 6.996 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.001758/0.3059, allocations: 0.8335 MB / 0.7905 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.92e-05/0.306, allocations: 8.031 kB / 0.7905 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.66e-05/0.3061, allocations: 42.75 kB / 0.7906 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.3062, allocations: 60.19 kB / 0.7906 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007513/0.307, allocations: 436.6 kB / 0.791 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.307, allocations: 12 kB / 0.791 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.307, allocations: 8 kB / 0.7911 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.3074, allocations: 137.8 kB / 0.7912 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3074, allocations: 0 / 0.7912 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.3075, allocations: 4 kB / 0.7912 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.3075, allocations: 11.94 kB / 0.7912 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.3077, allocations: 71.89 kB / 0.7913 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.3088, allocations: 0.5666 MB / 0.7918 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.3091, allocations: 134.7 kB / 0.7919 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3093, allocations: 44.84 kB / 0.792 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.3093, allocations: 3.984 kB / 0.792 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.3096, allocations: 119.5 kB / 0.7921 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.3096, allocations: 0 / 0.7921 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0005818/0.3102, allocations: 235.9 kB / 0.7923 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.049e-05/0.3103, allocations: 81.09 kB / 0.7924 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008847/0.3112, allocations: 0.6798 MB / 0.7931 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.3112, allocations: 33.64 kB / 0.7931 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.3115, allocations: 268.3 kB / 0.7934 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.3116, allocations: 39.55 kB / 0.7934 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3117, allocations: 61.55 kB / 0.7935 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001988/0.3119, allocations: 370.8 kB / 0.7938 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.3121, allocations: 71.97 kB / 0.7939 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.3123, allocations: 127.9 kB / 0.794 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.3126, allocations: 141.6 kB / 0.7941 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3126, allocations: 0 / 0.7941 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004837/0.3131, allocations: 264.8 kB / 0.7944 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.3131, allocations: 8 kB / 0.7944 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3131, allocations: 0 / 0.7944 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.3132, allocations: 0 / 0.7944 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.3133, allocations: 36.05 kB / 0.7944 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3134, allocations: 7.984 kB / 0.7944 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.3135, allocations: 27.89 kB / 0.7945 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.3136, allocations: 4 kB / 0.7945 GB, free: 1.832 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.000256/0.3138, allocations: 211.5 kB / 0.7947 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.495e-05/0.3139, allocations: 63.19 kB / 0.7947 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.314, allocations: 60.98 kB / 0.7948 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.314, allocations: 0 / 0.7948 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3141, allocations: 4 kB / 0.7948 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3141, allocations: 3.984 kB / 0.7948 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004781/0.3146, allocations: 373.3 kB / 0.7952 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3146, allocations: 0 / 0.7952 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.3147, allocations: 11.94 kB / 0.7952 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3147, allocations: 0 / 0.7952 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.3147, allocations: 8 kB / 0.7952 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3147, allocations: 0 / 0.7952 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3148, allocations: 0 / 0.7952 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004291/0.3152, allocations: 224.4 kB / 0.7954 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.3153, allocations: 132.3 kB / 0.7955 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.311e-05/0.3154, allocations: 4 kB / 0.7955 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.3155, allocations: 11.98 kB / 0.7955 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.3156, allocations: 15.98 kB / 0.7955 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.3156, allocations: 7.984 kB / 0.7956 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005487/0.3162, allocations: 471 kB / 0.796 GB, free: 168 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3162, allocations: 0 / 0.796 GB, free: 168 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003317/0.3165, allocations: 67.94 kB / 0.7961 GB, free: 100 kB / 0.6075 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.001549/0.3181, allocations: 1.093 MB / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005123/0.3186, allocations: 163.8 kB / 0.7973 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3186, allocations: 0 / 0.7973 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.3188, allocations: 58.22 kB / 0.7973 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004814/0.3193, allocations: 89.86 kB / 0.7974 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005028/0.3243, allocations: 3.997 MB / 0.8013 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/0.3248, allocations: 0.8583 MB / 0.8022 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001974/0.3251, allocations: 54.88 kB / 0.8022 GB, free: 9.809 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.3253, allocations: 163.4 kB / 0.8024 GB, free: 9.648 MB / 0.6231 GB Notification: Performance of SimCode: time 1.102e-06/0.3253, allocations: 0 / 0.8024 GB, free: 9.648 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.3603, allocations: 9.664 MB / 0.8118 GB, free: 156 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.835/8.196, allocations: 18.64 kB / 0.8118 GB, free: 140 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)