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.0008848/0.0008848, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009891/0.0009892, allocations: 177.3 kB / 15.95 MB, free: 216 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.405/1.405, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.615/1.615, allocations: 292.5 MB / 0.5497 GB, free: 14.62 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.000483/0.000483, allocations: 17.94 kB / 0.6735 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2095, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002523/0.2121, allocations: 2.063 MB / 0.7891 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001895/0.214, allocations: 1.341 MB / 0.7904 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.2141, allocations: 7.938 kB / 0.7905 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0007954/0.2149, allocations: 291.1 kB / 0.7907 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004045/0.2154, allocations: 191.5 kB / 0.7909 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.2159, allocations: 189.5 kB / 0.7911 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.2162, allocations: 251.4 kB / 0.7913 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.2164, allocations: 68.83 kB / 0.7914 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.2165, allocations: 143.4 kB / 0.7915 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2167, allocations: 135.4 kB / 0.7917 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.2167, allocations: 4 kB / 0.7917 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.2169, allocations: 47.97 kB / 0.7917 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.217, allocations: 111.6 kB / 0.7918 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.401e-05/0.2171, allocations: 97.44 kB / 0.7919 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003584/0.2174, allocations: 371.3 kB / 0.7923 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.2175, allocations: 4 kB / 0.7923 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.685e-06/0.2175, allocations: 4 kB / 0.7923 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.201e-06/0.2175, allocations: 3.938 kB / 0.7923 GB, free: 6.664 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.000998/0.2185, allocations: 0.7637 MB / 0.793 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2185, allocations: 12.03 kB / 0.793 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.175e-05/0.2186, allocations: 59.2 kB / 0.7931 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.2192, allocations: 408 kB / 0.7935 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.2192, allocations: 16.17 kB / 0.7935 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.2192, allocations: 12 kB / 0.7935 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.2195, allocations: 141 kB / 0.7936 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.2195, allocations: 0 / 0.7936 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.2195, allocations: 0 / 0.7936 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.2195, allocations: 4 kB / 0.7936 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.2197, allocations: 68.53 kB / 0.7937 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007934/0.2205, allocations: 0.586 MB / 0.7943 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.2208, allocations: 134.6 kB / 0.7944 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2208, allocations: 0 / 0.7944 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.221, allocations: 111.3 kB / 0.7945 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.2211, allocations: 0 / 0.7945 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0004511/0.2215, allocations: 225 kB / 0.7947 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.2216, allocations: 81.11 kB / 0.7948 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.2223, allocations: 0.6798 MB / 0.7955 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.2223, allocations: 29.7 kB / 0.7955 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.2225, allocations: 264.3 kB / 0.7958 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.2225, allocations: 35.62 kB / 0.7958 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.129e-05/0.2225, allocations: 4.219 kB / 0.7958 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.2227, allocations: 366.8 kB / 0.7961 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.2228, allocations: 79.91 kB / 0.7962 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.223, allocations: 127.8 kB / 0.7963 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.2232, allocations: 79.19 kB / 0.7964 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2232, allocations: 0 / 0.7964 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004044/0.2236, allocations: 276.9 kB / 0.7967 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.2236, allocations: 4 kB / 0.7967 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.2236, allocations: 4 kB / 0.7967 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2236, allocations: 0 / 0.7967 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.2238, allocations: 35.92 kB / 0.7967 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2238, allocations: 0 / 0.7967 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.224, allocations: 35.89 kB / 0.7968 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.224, allocations: 8 kB / 0.7968 GB, free: 1.82 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.0002085/0.2242, allocations: 211.5 kB / 0.797 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.446e-05/0.2243, allocations: 55.3 kB / 0.797 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.69e-05/0.2244, allocations: 61.03 kB / 0.7971 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.2244, allocations: 4 kB / 0.7971 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2244, allocations: 0 / 0.7971 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2244, allocations: 0 / 0.7971 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.2247, allocations: 377.3 kB / 0.7974 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2247, allocations: 4 kB / 0.7974 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-05/0.2248, allocations: 8 kB / 0.7975 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2248, allocations: 4 kB / 0.7975 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.2248, allocations: 11.97 kB / 0.7975 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2248, allocations: 0 / 0.7975 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2248, allocations: 0 / 0.7975 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003167/0.2251, allocations: 212.4 kB / 0.7977 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.2253, allocations: 140.3 kB / 0.7978 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.2253, allocations: 7.938 kB / 0.7978 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.2254, allocations: 19.92 kB / 0.7978 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.2255, allocations: 15.98 kB / 0.7978 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2255, allocations: 11.98 kB / 0.7979 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004684/0.226, allocations: 459 kB / 0.7983 GB, free: 156 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.226, allocations: 0 / 0.7983 GB, free: 156 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002908/0.2263, allocations: 67.98 kB / 0.7984 GB, free: 88 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 (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.0009525/0.2273, allocations: 432.9 kB / 0.7988 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003461/0.2276, allocations: 147.9 kB / 0.7989 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2276, allocations: 0 / 0.7989 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.2278, allocations: 63.91 kB / 0.799 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.2282, allocations: 89.73 kB / 0.7991 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.2293, allocations: 0.9097 MB / 0.7999 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.2297, allocations: 0.8769 MB / 0.8008 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001264/0.2299, allocations: 58.86 kB / 0.8009 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/0.2299, allocations: 27.44 kB / 0.8009 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.2299, allocations: 0 / 0.8009 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of Templates: time 0.00796/0.2379, allocations: 3.964 MB / 0.8048 GB, free: 9.672 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: