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.001488/0.001489, allocations: 101.6 kB / 16.27 MB, free: 6.418 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.001604/0.001604, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.364/1.364, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.792/1.792, allocations: 292.3 MB / 0.5495 GB, free: 17.55 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.001484/0.001485, allocations: 67.91 kB / 0.6722 GB, free: 6.531 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2335, allocations: 114.6 MB / 0.784 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003909/0.2375, allocations: 2.468 MB / 0.7864 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3731/0.6106, allocations: 1.481 MB / 0.7879 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.6111, allocations: 7.594 kB / 0.7879 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.6124, allocations: 315.6 kB / 0.7882 GB, free: 45.92 MB / 0.6544 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.0006524/0.613, allocations: 219.1 kB / 0.7884 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006721/0.6137, allocations: 231.4 kB / 0.7886 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000567/0.6143, allocations: 391.6 kB / 0.789 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.6145, allocations: 69.61 kB / 0.7891 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.6148, allocations: 159 kB / 0.7892 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.6151, allocations: 158.4 kB / 0.7894 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.452e-05/0.6152, allocations: 21.91 kB / 0.7894 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002498/0.6154, allocations: 77.53 kB / 0.7895 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.6156, allocations: 131.3 kB / 0.7896 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.6158, allocations: 191.8 kB / 0.7898 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.6164, allocations: 0.489 MB / 0.7902 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.6164, allocations: 0 / 0.7902 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6164, allocations: 0 / 0.7902 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.896e-05/0.6165, allocations: 2.375 kB / 0.7902 GB, free: 45.64 MB / 0.6544 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.001214/0.6177, allocations: 0.8263 MB / 0.7911 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.6177, allocations: 7.75 kB / 0.7911 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.849e-05/0.6178, allocations: 65 kB / 0.7911 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.6183, allocations: 435 kB / 0.7915 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.6183, allocations: 13.12 kB / 0.7916 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.6183, allocations: 15 kB / 0.7916 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.6186, allocations: 136.8 kB / 0.7917 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.6186, allocations: 0 / 0.7917 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.6187, allocations: 6.359 kB / 0.7917 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.6187, allocations: 3.25 kB / 0.7917 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.6188, allocations: 72.44 kB / 0.7918 GB, free: 44.63 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007831/0.6196, allocations: 0.5701 MB / 0.7923 GB, free: 44.36 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.6199, allocations: 128.2 kB / 0.7925 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.388e-05/0.62, allocations: 46.98 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.6201, allocations: 5.016 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.6203, allocations: 107.4 kB / 0.7926 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=13): time 2.003e-06/0.6203, allocations: 4.062 kB / 0.7926 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13): time 0.0004707/0.6208, allocations: 239.6 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.6208, allocations: 77.11 kB / 0.7929 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006127/0.6214, allocations: 0.6906 MB / 0.7936 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.6215, allocations: 38.27 kB / 0.7936 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.6216, allocations: 261.3 kB / 0.7939 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.6217, allocations: 39.09 kB / 0.7939 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.6218, allocations: 54.94 kB / 0.794 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.85e-05/0.6219, allocations: 371.9 kB / 0.7943 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.622, allocations: 68.38 kB / 0.7944 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.6222, allocations: 123.7 kB / 0.7945 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.6224, allocations: 137.9 kB / 0.7946 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.6224, allocations: 0 / 0.7946 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003806/0.6228, allocations: 267.5 kB / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.6228, allocations: 8.219 kB / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.6228, allocations: 4.062 kB / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.6229, allocations: 4.109 kB / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.623, allocations: 41.92 kB / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.6231, allocations: 0 / 0.7949 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.6232, allocations: 24.55 kB / 0.795 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.6233, allocations: 8.906 kB / 0.795 GB, free: 43.37 MB / 0.6544 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.0001727/0.6234, allocations: 211.5 kB / 0.7952 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.6235, allocations: 66.69 kB / 0.7952 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.422e-05/0.6236, allocations: 56.7 kB / 0.7953 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.6236, allocations: 3.375 kB / 0.7953 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6236, allocations: 0 / 0.7953 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6236, allocations: 0 / 0.7953 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.6239, allocations: 367.4 kB / 0.7956 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.6239, allocations: 0 / 0.7956 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.37e-05/0.6239, allocations: 6.938 kB / 0.7957 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.6239, allocations: 3.938 kB / 0.7957 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.6239, allocations: 8.953 kB / 0.7957 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.624, allocations: 0 / 0.7957 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.624, allocations: 4 kB / 0.7957 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.6243, allocations: 230.1 kB / 0.7959 GB, free: 42.91 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/0.6244, allocations: 134.9 kB / 0.796 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.6244, allocations: 6.828 kB / 0.796 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.6245, allocations: 9.656 kB / 0.796 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.6246, allocations: 16.12 kB / 0.796 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.6246, allocations: 10.94 kB / 0.7961 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000425/0.6251, allocations: 471 kB / 0.7965 GB, free: 42.68 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6251, allocations: 1.125 kB / 0.7965 GB, free: 42.68 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003058/0.6254, allocations: 60.91 kB / 0.7966 GB, free: 42.68 MB / 0.6544 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.0009559/0.6263, allocations: 436.7 kB / 0.797 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000367/0.6267, allocations: 153.8 kB / 0.7971 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6267, allocations: 4.125 kB / 0.7971 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.6269, allocations: 59.69 kB / 0.7972 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.6274, allocations: 96.52 kB / 0.7973 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.6285, allocations: 0.8843 MB / 0.7981 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.6288, allocations: 0.8587 MB / 0.799 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.661e-05/0.6289, allocations: 31.14 kB / 0.799 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of SimCode: time 5.82e-07/0.6289, allocations: 0 / 0.799 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of Templates: time 0.01193/0.6408, allocations: 5.735 MB / 0.8046 GB, free: 40.7 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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)