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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000849/0.0008489, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001067/0.001067, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.652/1.652, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005506/0.0005507, allocations: 18.91 kB / 0.6737 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2271, allocations: 116.3 MB / 0.7873 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003005/0.2302, allocations: 2.094 MB / 0.7893 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002301/0.2325, allocations: 1.38 MB / 0.7907 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002603/0.2328, allocations: 7.938 kB / 0.7907 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008998/0.2337, allocations: 291 kB / 0.791 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004901/0.2342, allocations: 183.3 kB / 0.7911 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.2349, allocations: 197.6 kB / 0.7913 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005424/0.2354, allocations: 350.7 kB / 0.7917 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2356, allocations: 52.89 kB / 0.7917 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.2359, allocations: 143.3 kB / 0.7918 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.2362, allocations: 147.3 kB / 0.792 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.2363, allocations: 11.94 kB / 0.792 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.2365, allocations: 51.97 kB / 0.792 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.2366, allocations: 115.6 kB / 0.7922 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2367, allocations: 97.39 kB / 0.7923 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.2372, allocations: 367.4 kB / 0.7926 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2372, allocations: 4 kB / 0.7926 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2372, allocations: 0 / 0.7926 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.316e-05/0.2372, allocations: 3.938 kB / 0.7926 GB, free: 6.48 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.001186/0.2384, allocations: 0.7676 MB / 0.7934 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.2384, allocations: 8.031 kB / 0.7934 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.2386, allocations: 71.14 kB / 0.7934 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005672/0.2391, allocations: 408 kB / 0.7938 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.2392, allocations: 8.188 kB / 0.7938 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.2392, allocations: 11.94 kB / 0.7938 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.2395, allocations: 143.4 kB / 0.794 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2396, allocations: 0 / 0.794 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.2396, allocations: 4 kB / 0.794 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2396, allocations: 4 kB / 0.794 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.2398, allocations: 72.52 kB / 0.7941 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008908/0.2407, allocations: 0.5782 MB / 0.7946 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.241, allocations: 126.7 kB / 0.7947 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.2411, allocations: 48.84 kB / 0.7948 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.2411, allocations: 7.969 kB / 0.7948 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2413, allocations: 107.4 kB / 0.7949 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.2413, allocations: 0 / 0.7949 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0004976/0.2418, allocations: 224.9 kB / 0.7951 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.2419, allocations: 85.09 kB / 0.7952 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008129/0.2427, allocations: 0.6798 MB / 0.7959 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.2428, allocations: 29.7 kB / 0.7959 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.243, allocations: 260.3 kB / 0.7961 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.2431, allocations: 31.64 kB / 0.7962 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.2431, allocations: 8 kB / 0.7962 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.2433, allocations: 370.8 kB / 0.7965 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.2434, allocations: 71.97 kB / 0.7966 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.2436, allocations: 125 kB / 0.7967 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.2438, allocations: 80 kB / 0.7968 GB, free: 1.953 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2438, allocations: 3.953 kB / 0.7968 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004399/0.2443, allocations: 272.1 kB / 0.7971 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2443, allocations: 8 kB / 0.7971 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.2443, allocations: 0 / 0.7971 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.2443, allocations: 3.938 kB / 0.7971 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.2445, allocations: 35.97 kB / 0.7971 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2445, allocations: 4 kB / 0.7971 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.2447, allocations: 31.94 kB / 0.7971 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.2447, allocations: 11.98 kB / 0.7971 GB, free: 1.586 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 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002441/0.245, allocations: 211.5 kB / 0.7973 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.2451, allocations: 63.23 kB / 0.7974 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.935e-05/0.2452, allocations: 57.05 kB / 0.7975 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2452, allocations: 0 / 0.7975 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.2452, allocations: 4 kB / 0.7975 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2452, allocations: 0 / 0.7975 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.2456, allocations: 385.3 kB / 0.7978 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2456, allocations: 0 / 0.7978 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-05/0.2457, allocations: 15.88 kB / 0.7978 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.2457, allocations: 4 kB / 0.7979 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2457, allocations: 0 / 0.7979 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2457, allocations: 0 / 0.7979 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2457, allocations: 0 / 0.7979 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.2461, allocations: 223.2 kB / 0.7981 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.2462, allocations: 132.3 kB / 0.7982 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/0.2463, allocations: 3.953 kB / 0.7982 GB, free: 420 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2464, allocations: 19.98 kB / 0.7982 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.2465, allocations: 19.97 kB / 0.7982 GB, free: 380 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.2465, allocations: 4 kB / 0.7982 GB, free: 376 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005888/0.2471, allocations: 463 kB / 0.7987 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2471, allocations: 4 kB / 0.7987 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003369/0.2474, allocations: 64 kB / 0.7987 GB, free: 15.85 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.2485, allocations: 440.2 kB / 0.7992 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.2488, allocations: 149.5 kB / 0.7993 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2489, allocations: 0 / 0.7993 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.249, allocations: 64.05 kB / 0.7994 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.2495, allocations: 82.92 kB / 0.7994 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.251, allocations: 0.9107 MB / 0.8003 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000687/0.2517, allocations: 0.8691 MB / 0.8012 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001925/0.2519, allocations: 54.92 kB / 0.8012 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/0.252, allocations: 31.38 kB / 0.8013 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of SimCode: time 3.81e-07/0.252, allocations: 0 / 0.8013 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of Templates: time 0.01093/0.2629, allocations: 3.971 MB / 0.8051 GB, free: 9.434 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) Environment - environmentSimulation: