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.001073/0.001073, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00108/0.00108, allocations: 194.9 kB / 16.25 MB, free: 6.625 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.113/1.113, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.501/1.501, allocations: 292.3 MB / 0.5486 GB, free: 13.65 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.001364/0.001364, allocations: 68.52 kB / 0.6711 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2107, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004042/0.2148, allocations: 2.502 MB / 0.7854 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002388/0.2172, allocations: 1.469 MB / 0.7869 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.2174, allocations: 3.938 kB / 0.7869 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009122/0.2183, allocations: 311.8 kB / 0.7872 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004177/0.2188, allocations: 195.3 kB / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.2193, allocations: 223.6 kB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003899/0.2197, allocations: 390.8 kB / 0.7879 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2199, allocations: 72.64 kB / 0.788 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2201, allocations: 167.3 kB / 0.7882 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.2204, allocations: 171.2 kB / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.938e-05/0.2204, allocations: 16 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.2206, allocations: 83.88 kB / 0.7884 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.2208, allocations: 123.6 kB / 0.7885 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.221, allocations: 198.5 kB / 0.7887 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.2215, allocations: 498.2 kB / 0.7892 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2215, allocations: 0 / 0.7892 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2215, allocations: 0 / 0.7892 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.2215, allocations: 0 / 0.7892 GB, free: 7.414 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.001263/0.2228, allocations: 0.8335 MB / 0.79 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.2229, allocations: 8.031 kB / 0.79 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.784e-05/0.2229, allocations: 46.67 kB / 0.7901 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.223, allocations: 60.19 kB / 0.7901 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.2236, allocations: 428.7 kB / 0.7905 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.2236, allocations: 15.98 kB / 0.7905 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.2236, allocations: 8 kB / 0.7906 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.2239, allocations: 140 kB / 0.7907 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2239, allocations: 0 / 0.7907 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.224, allocations: 4 kB / 0.7907 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.224, allocations: 11.88 kB / 0.7907 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.2242, allocations: 67.97 kB / 0.7908 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.2252, allocations: 0.5744 MB / 0.7913 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.2256, allocations: 130.6 kB / 0.7915 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.2257, allocations: 48.84 kB / 0.7915 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.2257, allocations: 3.984 kB / 0.7915 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.226, allocations: 111.5 kB / 0.7916 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.226, allocations: 0 / 0.7916 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0005208/0.2266, allocations: 239.6 kB / 0.7918 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.2266, allocations: 85.11 kB / 0.7919 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008282/0.2274, allocations: 0.6837 MB / 0.7926 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2275, allocations: 29.7 kB / 0.7926 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.2277, allocations: 268.3 kB / 0.7929 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.2278, allocations: 39.55 kB / 0.7929 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/0.2279, allocations: 53.61 kB / 0.793 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.228, allocations: 374.8 kB / 0.7933 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.2282, allocations: 71.97 kB / 0.7934 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.2284, allocations: 128.3 kB / 0.7935 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.2286, allocations: 141.2 kB / 0.7936 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2287, allocations: 4 kB / 0.7936 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004269/0.2291, allocations: 260 kB / 0.7939 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.2291, allocations: 8 kB / 0.7939 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2291, allocations: 0 / 0.7939 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2292, allocations: 3.984 kB / 0.7939 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.2293, allocations: 39.92 kB / 0.7939 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.2293, allocations: 0 / 0.7939 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.2295, allocations: 31.95 kB / 0.794 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.2296, allocations: 8 kB / 0.794 GB, free: 2.242 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.0002124/0.2298, allocations: 211.4 kB / 0.7942 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.2299, allocations: 63.19 kB / 0.7942 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.45e-05/0.23, allocations: 57.05 kB / 0.7943 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.23, allocations: 0 / 0.7943 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.23, allocations: 0 / 0.7943 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.23, allocations: 3.984 kB / 0.7943 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.2303, allocations: 381.3 kB / 0.7947 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2303, allocations: 0 / 0.7947 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.516e-05/0.2304, allocations: 4 kB / 0.7947 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2304, allocations: 4 kB / 0.7947 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.2304, allocations: 4 kB / 0.7947 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2304, allocations: 3.938 kB / 0.7947 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2304, allocations: 0 / 0.7947 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.2308, allocations: 220.3 kB / 0.7949 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2309, allocations: 136.3 kB / 0.795 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.341e-05/0.231, allocations: 4 kB / 0.795 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.2311, allocations: 11.98 kB / 0.795 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.392e-05/0.2312, allocations: 15.98 kB / 0.7951 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.2312, allocations: 7.984 kB / 0.7951 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005916/0.2318, allocations: 471 kB / 0.7955 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2318, allocations: 0 / 0.7955 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003019/0.2321, allocations: 63.94 kB / 0.7956 GB, free: 0.5156 MB / 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.001744/0.2339, allocations: 1.096 MB / 0.7966 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003874/0.2343, allocations: 156.6 kB / 0.7968 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2343, allocations: 128 / 0.7968 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.2344, allocations: 59.92 kB / 0.7968 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005017/0.2349, allocations: 91 kB / 0.7969 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00517/0.2401, allocations: 4.088 MB / 0.8009 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.2405, allocations: 0.865 MB / 0.8018 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000164/0.2407, allocations: 54.92 kB / 0.8018 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.2409, allocations: 163.4 kB / 0.802 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of SimCode: time 6.21e-07/0.2409, allocations: 0 / 0.802 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06226/0.3032, allocations: 9.484 MB / 0.8112 GB, free: 0.6719 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.3034, allocations: 256.3 kB / 0.8115 GB, free: 424 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.507, allocations: 3.938 kB / 0.8115 GB, free: 420 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)