Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified3,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_FlowSystem_Simplified3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified3,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_FlowSystem_Simplified3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.795/1.795, allocations: 289.9 MB / 297.4 MB, free: 6.367 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 184.9 kB / 366.7 MB, free: 1.641 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.2 MB / 0.626 GB, free: 7.164 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008155/0.0008154, allocations: 100.4 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.051e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7454/0.7454, allocations: 116.3 MB / 0.9733 GB, free: 76.08 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.217/1.963, allocations: 464.6 MB / 1.427 GB, free: 88.12 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/1.963, allocations: 97.25 kB / 1.427 GB, free: 88.07 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 39.76/41.72, allocations: 9.442 GB / 10.87 GB, free: 83.65 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.415e-06/41.72, allocations: 0 / 10.87 GB, free: 83.65 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.003576/41.73, allocations: 0.5129 MB / 10.87 GB, free: 83.5 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2061 * Number of variables: 2061 Notification: Performance of Generate backend data structure: time 0.05228/41.78, allocations: 14.14 MB / 10.88 GB, free: 77.28 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/41.78, allocations: 10.09 kB / 10.88 GB, free: 77.28 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01547/41.8, allocations: 2.304 MB / 10.89 GB, free: 76.25 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0706/41.87, allocations: 23.25 MB / 10.91 GB, free: 73.3 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005776/41.87, allocations: 256.2 kB / 10.91 GB, free: 73.3 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005281/41.87, allocations: 0.5821 MB / 10.91 GB, free: 73.29 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03346/41.91, allocations: 19.65 MB / 10.93 GB, free: 71.43 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04528/41.95, allocations: 15.38 MB / 10.94 GB, free: 62.18 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005722/41.95, allocations: 11.88 kB / 10.94 GB, free: 62.17 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004589/41.96, allocations: 24 kB / 10.94 GB, free: 62.15 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001877/41.96, allocations: 215.1 kB / 10.94 GB, free: 61.94 MB / 1.214 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1488/42.11, allocations: 78.35 MB / 11.02 GB, free: 7.172 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 1.166/43.27, allocations: 12.13 MB / 11.03 GB, free: 110.1 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01611/43.29, allocations: 9.583 MB / 11.04 GB, free: 110 MB / 1.229 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt evalFunc (simulation): time 0.0762/43.36, allocations: 32.78 MB / 11.07 GB, free: 101.6 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01802/43.38, allocations: 8.88 MB / 11.08 GB, free: 101.5 MB / 1.229 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05131/43.43, allocations: 14.96 MB / 11.1 GB, free: 101.5 MB / 1.229 GB Notification: Performance of pre-optimization done (n=561): time 6.981e-05/43.43, allocations: 0 / 11.1 GB, free: 101.5 MB / 1.229 GB Notification: Performance of matching and sorting (n=563): time 0.6635/44.1, allocations: 138.4 MB / 11.23 GB, free: 97.88 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001185/44.1, allocations: 2.502 MB / 11.23 GB, free: 94.87 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03706/44.14, allocations: 13.87 MB / 11.25 GB, free: 94.11 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.005756/44.14, allocations: 44.27 kB / 11.25 GB, free: 94.07 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.01351/44.15, allocations: 7.936 MB / 11.26 GB, free: 92.68 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.006271/44.16, allocations: 1.929 MB / 11.26 GB, free: 91.67 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003768/44.17, allocations: 0 / 11.26 GB, free: 91.67 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0009501/44.17, allocations: 0.6737 MB / 11.26 GB, free: 91.35 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01456/44.18, allocations: 8.347 MB / 11.27 GB, free: 91.32 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01758/44.2, allocations: 11.79 MB / 11.28 GB, free: 87.35 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02205/44.22, allocations: 9.796 MB / 11.29 GB, free: 87.12 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001588/44.22, allocations: 16.97 kB / 11.29 GB, free: 87.12 MB / 1.229 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.5932/44.81, allocations: 124.1 MB / 11.41 GB, free: 55.45 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.00661/44.82, allocations: 38.12 MB / 11.45 GB, free: 16.24 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005578/44.82, allocations: 115 kB / 11.45 GB, free: 16.13 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788/46.61, allocations: 143.2 MB / 11.59 GB, free: 130.5 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01223/46.62, allocations: 2.128 MB / 11.59 GB, free: 130.5 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.145/46.77, allocations: 65.59 MB / 11.65 GB, free: 125.8 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02285/46.79, allocations: 0.9645 MB / 11.65 GB, free: 125.8 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005661/46.8, allocations: 0.8304 MB / 11.65 GB, free: 125.8 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/46.8, allocations: 2.656 kB / 11.65 GB, free: 125.8 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6013/47.4, allocations: 121.5 MB / 11.77 GB, free: 123.9 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005581/47.4, allocations: 115.7 kB / 11.77 GB, free: 123.9 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.623/48.02, allocations: 143.3 MB / 11.91 GB, free: 13.94 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01129/48.03, allocations: 2.12 MB / 11.91 GB, free: 11.98 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234/49.27, allocations: 68.64 MB / 11.98 GB, free: 156.1 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0223/49.29, allocations: 0.9329 MB / 11.98 GB, free: 156.1 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006286/49.29, allocations: 0.7922 MB / 11.98 GB, free: 156.1 MB / 1.292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (945): * Single equations (assignments): 869 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of prepare postOptimizeDAE: time 0.008437/49.3, allocations: 356.1 kB / 11.98 GB, free: 156 MB / 1.292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.6007/49.9, allocations: 118.3 MB / 12.1 GB, free: 155.6 MB / 1.292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009601/49.91, allocations: 1.472 MB / 12.1 GB, free: 155.6 MB / 1.292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1885/50.1, allocations: 43.21 MB / 12.14 GB, free: 155 MB / 1.292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001619/50.1, allocations: 69.09 kB / 12.14 GB, free: 155 MB / 1.292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.411e-05/50.1, allocations: 30 kB / 12.14 GB, free: 155 MB / 1.292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1666/50.27, allocations: 38.11 MB / 12.18 GB, free: 154.3 MB / 1.292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2088/50.48, allocations: 56.98 MB / 12.24 GB, free: 150.3 MB / 1.292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.388e-05/50.48, allocations: 0 / 12.24 GB, free: 150.3 MB / 1.292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006917/50.49, allocations: 1.106 MB / 12.24 GB, free: 150.3 MB / 1.292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1806/50.67, allocations: 40.46 MB / 12.28 GB, free: 141.8 MB / 1.292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002294/50.67, allocations: 152.5 kB / 12.28 GB, free: 141.7 MB / 1.292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05154/50.72, allocations: 25.9 MB / 12.3 GB, free: 126.8 MB / 1.292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/50.72, allocations: 4 kB / 12.3 GB, free: 126.8 MB / 1.292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1794/50.9, allocations: 48.56 MB / 12.35 GB, free: 97.7 MB / 1.292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01404/50.91, allocations: 3.145 MB / 12.35 GB, free: 95.26 MB / 1.292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008058/50.92, allocations: 83.42 kB / 12.35 GB, free: 95.2 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0174/50.94, allocations: 0.7514 MB / 12.35 GB, free: 94.47 MB / 1.292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003199/50.94, allocations: 408 kB / 12.35 GB, free: 94.12 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00202/50.94, allocations: 261.7 kB / 12.35 GB, free: 93.91 MB / 1.292 GB Notification: Performance of sorting global known variables: time 0.02542/50.97, allocations: 10.41 MB / 12.36 GB, free: 87 MB / 1.292 GB Notification: Performance of sort global known variables: time 4.21e-07/50.97, allocations: 4 kB / 12.36 GB, free: 87 MB / 1.292 GB Notification: Performance of remove unused functions: time 0.06713/51.04, allocations: 7.866 MB / 12.37 GB, free: 79.63 MB / 1.292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.x[1],pmpSouth.filter.x[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.x[1],pmpNorth.filter.x[2],valSouth1[1].filter.x[1],valSouth1[1].filter.x[2],valSouth1[2].filter.x[1],valSouth1[2].filter.x[2],valSouth1[3].filter.x[1],valSouth1[3].filter.x[2],valSouth1[4].filter.x[1],valSouth1[4].filter.x[2],valSouth2[1].filter.x[1],valSouth2[1].filter.x[2],valSouth2[2].filter.x[1],valSouth2[2].filter.x[2],valSouth2[3].filter.x[1],valSouth2[3].filter.x[2],valSouth2[4].filter.x[1],valSouth2[4].filter.x[2],valSouth2[5].filter.x[1],valSouth2[5].filter.x[2],valSouth2[6].filter.x[1],valSouth2[6].filter.x[2],valSouth2[7].filter.x[1],valSouth2[7].filter.x[2],valSouth2[8].filter.x[1],valSouth2[8].filter.x[2],valNorth1[1].filter.x[1],valNorth1[1].filter.x[2],valNorth1[2].filter.x[1],valNorth1[2].filter.x[2],valNorth1[3].filter.x[1],valNorth1[3].filter.x[2],valNorth1[4].filter.x[1],valNorth1[4].filter.x[2],valNorth2[1].filter.x[1],valNorth2[1].filter.x[2],valNorth2[2].filter.x[1],valNorth2[2].filter.x[2],valNorth2[3].filter.x[1],valNorth2[3].filter.x[2],valNorth2[4].filter.x[1],valNorth2[4].filter.x[2],valNorth2[5].filter.x[1],valNorth2[5].filter.x[2],valNorth2[6].filter.x[1],valNorth2[6].filter.x[2],valNorth2[7].filter.x[1],valNorth2[7].filter.x[2],valNorth2[8].filter.x[1],valNorth2[8].filter.x[2],valSouth.vol.dynBal.U,valSouth.filter.x[1],valSouth.filter.x[2],valNorth.vol.dynBal.U,valNorth.filter.x[1],valNorth.filter.x[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.x[1],pumpHea.filter.x[2],valHea.filter.x[1],valHea.filter.x[2],valCoo.filter.x[1],valCoo.filter.x[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.x[1],pumpCoo.filter.x[2]) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (519): * Single equations (assignments): 499 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.1926/51.23, allocations: 53.71 MB / 12.42 GB, free: 36.23 MB / 1.292 GB Notification: Performance of simCode: created initialization part: time 1.115/52.34, allocations: 35.19 MB / 12.46 GB, free: 161 MB / 1.292 GB Notification: Performance of simCode: created event and clocks part: time 2.199e-05/52.34, allocations: 14.44 kB / 12.46 GB, free: 161 MB / 1.292 GB Notification: Performance of simCode: created simulation system equations: time 0.01878/52.36, allocations: 8.173 MB / 12.47 GB, free: 160.8 MB / 1.292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04688/52.41, allocations: 7.426 MB / 12.47 GB, free: 160.7 MB / 1.292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09544/52.51, allocations: 30.08 MB / 12.5 GB, free: 155 MB / 1.292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02027/52.53, allocations: 8.939 MB / 12.51 GB, free: 153.9 MB / 1.292 GB Notification: Performance of simCode: alias equations: time 0.04472/52.57, allocations: 8.28 MB / 12.52 GB, free: 153.7 MB / 1.292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01636/52.59, allocations: 7.374 MB / 12.53 GB, free: 153.7 MB / 1.292 GB Notification: Performance of SimCode: time 1.342e-06/52.59, allocations: 0 / 12.53 GB, free: 153.7 MB / 1.292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.163/55.75, allocations: 0.5507 GB / 13.08 GB, free: 158.1 MB / 1.307 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/55.75, allocations: 168.3 kB / 13.08 GB, free: 157.9 MB / 1.307 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.65/93.41, allocations: 0 / 13.08 GB, free: 157.9 MB / 1.307 GB (rm -f Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Examples_FlowSystem_Simplified3_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Examples_FlowSystem_Simplified3.fmu > Buildings_8_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1)