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.001502/0.001503, allocations: 105.7 kB / 16.29 MB, free: 6.426 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.002043/0.002042, allocations: 188.6 kB / 17.22 MB, free: 5.957 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.666/1.666, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.823/1.823, allocations: 292.3 MB / 0.5495 GB, free: 17.64 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.001555/0.001555, allocations: 67.91 kB / 0.6722 GB, free: 6.582 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2394, allocations: 114.6 MB / 0.7841 GB, free: 3.914 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00419/0.2436, allocations: 2.46 MB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4621/0.7057, allocations: 1.489 MB / 0.7879 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003892/0.7061, allocations: 5.906 kB / 0.7879 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.7073, allocations: 315.2 kB / 0.7882 GB, free: 45.95 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.0005013/0.7078, allocations: 217.6 kB / 0.7884 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.7085, allocations: 236.8 kB / 0.7887 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004981/0.709, allocations: 388 kB / 0.789 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.7092, allocations: 72.98 kB / 0.7891 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.7095, allocations: 151.9 kB / 0.7893 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.7097, allocations: 163.9 kB / 0.7894 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.568e-05/0.7097, allocations: 18.91 kB / 0.7894 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.71, allocations: 87.73 kB / 0.7895 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.7101, allocations: 126.9 kB / 0.7896 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.7103, allocations: 195 kB / 0.7898 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.7108, allocations: 0.4956 MB / 0.7903 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.7108, allocations: 0 / 0.7903 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7109, allocations: 0 / 0.7903 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.7109, allocations: 0 / 0.7903 GB, free: 45.67 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.00118/0.7121, allocations: 0.8322 MB / 0.7911 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.7121, allocations: 7.875 kB / 0.7911 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.958e-05/0.7122, allocations: 63.33 kB / 0.7912 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.7127, allocations: 439.7 kB / 0.7916 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.7128, allocations: 13.25 kB / 0.7916 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.7128, allocations: 15.52 kB / 0.7916 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.7131, allocations: 133.1 kB / 0.7918 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.7131, allocations: 0 / 0.7918 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.7131, allocations: 5.766 kB / 0.7918 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.7131, allocations: 2.656 kB / 0.7918 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.7133, allocations: 72.56 kB / 0.7918 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000763/0.7141, allocations: 0.5664 MB / 0.7924 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.7144, allocations: 129.2 kB / 0.7925 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.215e-05/0.7145, allocations: 52.03 kB / 0.7926 GB, free: 44.36 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.7145, allocations: 0 / 0.7926 GB, free: 44.36 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.7147, allocations: 110.7 kB / 0.7927 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=13): time 2.154e-06/0.7147, allocations: 5.016 kB / 0.7927 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13): time 0.0004621/0.7152, allocations: 238.2 kB / 0.7929 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.7153, allocations: 83.77 kB / 0.793 GB, free: 44.15 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.7159, allocations: 0.6903 MB / 0.7937 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.7159, allocations: 30.39 kB / 0.7937 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.716, allocations: 265 kB / 0.7939 GB, free: 43.9 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.7161, allocations: 32.23 kB / 0.794 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.7162, allocations: 58.61 kB / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.856e-05/0.7163, allocations: 372 kB / 0.7944 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.7164, allocations: 73.47 kB / 0.7944 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.7166, allocations: 119.3 kB / 0.7946 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.7168, allocations: 135.4 kB / 0.7947 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7168, allocations: 0 / 0.7947 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003955/0.7172, allocations: 267.1 kB / 0.7949 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.7172, allocations: 9.859 kB / 0.795 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.7172, allocations: 1 kB / 0.795 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.7173, allocations: 3.312 kB / 0.795 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.7174, allocations: 38.8 kB / 0.795 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.7174, allocations: 0 / 0.795 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.7176, allocations: 30.84 kB / 0.795 GB, free: 43.4 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.7176, allocations: 6.938 kB / 0.795 GB, free: 43.4 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.0001998/0.7178, allocations: 213.4 kB / 0.7952 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/0.7179, allocations: 59.73 kB / 0.7953 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.832e-05/0.718, allocations: 58.78 kB / 0.7953 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.718, allocations: 3.312 kB / 0.7953 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.718, allocations: 0 / 0.7953 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.718, allocations: 7.938 kB / 0.7954 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.7183, allocations: 363.8 kB / 0.7957 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7183, allocations: 0 / 0.7957 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.616e-05/0.7184, allocations: 13.38 kB / 0.7957 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.7184, allocations: 3.938 kB / 0.7957 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.7184, allocations: 6.5 kB / 0.7957 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.7184, allocations: 3.938 kB / 0.7957 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7184, allocations: 2.812 kB / 0.7957 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002988/0.7187, allocations: 220.8 kB / 0.7959 GB, free: 42.94 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.7188, allocations: 131.7 kB / 0.7961 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.156e-05/0.7189, allocations: 8.938 kB / 0.7961 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.719, allocations: 17.7 kB / 0.7961 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.719, allocations: 13.09 kB / 0.7961 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.7191, allocations: 6.953 kB / 0.7961 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003885/0.7195, allocations: 472.4 kB / 0.7966 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7195, allocations: 0 / 0.7966 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002895/0.7198, allocations: 66.19 kB / 0.7966 GB, free: 42.71 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.00102/0.7208, allocations: 429.6 kB / 0.797 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003265/0.7211, allocations: 156.6 kB / 0.7972 GB, free: 42.6 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.7211, allocations: 1.844 kB / 0.7972 GB, free: 42.6 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.7213, allocations: 55.97 kB / 0.7972 GB, free: 42.6 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.7217, allocations: 99.28 kB / 0.7973 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009842/0.7227, allocations: 0.8282 MB / 0.7981 GB, free: 42.23 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.723, allocations: 0.8636 MB / 0.799 GB, free: 41.53 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001182/0.7231, allocations: 49.12 kB / 0.799 GB, free: 41.53 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.095e-05/0.7232, allocations: 31.19 kB / 0.7991 GB, free: 41.52 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.7232, allocations: 0 / 0.7991 GB, free: 41.52 MB / 0.6544 GB Notification: Performance of Templates: time 0.01075/0.7339, allocations: 4.344 MB / 0.8033 GB, free: 41.29 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)