Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.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.Basic,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_FlowSystem_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Basic,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_FlowSystem_Basic",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.968/1.968, allocations: 289.9 MB / 297.4 MB, free: 6.422 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.001184/0.001184, allocations: 176.8 kB / 366.7 MB, free: 1.66 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.943/1.943, allocations: 205.2 MB / 0.626 GB, free: 7.227 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.0009385/0.0009385, allocations: 82.66 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.371e-05, allocations: 4 kB / 0.8598 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6883/0.6884, allocations: 116.3 MB / 0.9733 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.121/1.81, allocations: 464.1 MB / 1.427 GB, free: 88.61 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/1.81, allocations: 99.28 kB / 1.427 GB, free: 88.56 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 27.3/29.11, allocations: 6.385 GB / 7.812 GB, free: 84.03 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.715e-06/29.11, allocations: 0 / 7.812 GB, free: 84.03 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.004455/29.11, allocations: 0.5274 MB / 7.812 GB, free: 83.92 MB / 1.198 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.06231/29.17, allocations: 14.16 MB / 7.826 GB, free: 77.85 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/29.17, allocations: 13.81 kB / 7.826 GB, free: 77.84 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01848/29.19, allocations: 2.313 MB / 7.828 GB, free: 76.81 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07532/29.27, allocations: 23.32 MB / 7.851 GB, free: 74.1 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007502/29.27, allocations: 259.2 kB / 7.851 GB, free: 74.1 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006383/29.27, allocations: 0.5914 MB / 7.852 GB, free: 74.1 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03988/29.31, allocations: 19.92 MB / 7.871 GB, free: 74.05 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04844/29.36, allocations: 15.56 MB / 7.887 GB, free: 72.17 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008368/29.36, allocations: 14.92 kB / 7.887 GB, free: 72.17 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005307/29.37, allocations: 18.91 kB / 7.887 GB, free: 72.17 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003385/29.37, allocations: 216.9 kB / 7.887 GB, free: 72.17 MB / 1.198 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.1621/29.53, allocations: 77.16 MB / 7.962 GB, free: 39.68 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02584/29.56, allocations: 13.18 MB / 7.975 GB, free: 39.23 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01575/29.57, allocations: 9.817 MB / 7.985 GB, free: 38.52 MB / 1.198 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.0899/29.66, allocations: 33.56 MB / 8.017 GB, free: 20.81 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01829/29.68, allocations: 9.176 MB / 8.026 GB, free: 17.52 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04817/29.73, allocations: 14.96 MB / 8.041 GB, free: 16.1 MB / 1.198 GB Notification: Performance of pre-optimization done (n=606): time 8.033e-05/29.73, allocations: 4 kB / 8.041 GB, free: 16.1 MB / 1.198 GB Notification: Performance of matching and sorting (n=608): time 1.918/31.65, allocations: 140.7 MB / 8.178 GB, free: 114.5 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008005/31.65, allocations: 2.512 MB / 8.181 GB, free: 111.4 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04286/31.69, allocations: 13.83 MB / 8.194 GB, free: 110.8 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.005267/31.7, allocations: 47.33 kB / 8.194 GB, free: 110.7 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.0139/31.71, allocations: 7.767 MB / 8.202 GB, free: 110.3 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.006202/31.72, allocations: 2.075 MB / 8.204 GB, free: 110.1 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004543/31.72, allocations: 0 / 8.204 GB, free: 110.1 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.001307/31.72, allocations: 0.6765 MB / 8.205 GB, free: 109.8 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01715/31.74, allocations: 8.552 MB / 8.213 GB, free: 109.8 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02085/31.76, allocations: 12.05 MB / 8.225 GB, free: 105.9 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.024/31.78, allocations: 10.02 MB / 8.235 GB, free: 105.8 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002044/31.78, allocations: 13.78 kB / 8.235 GB, free: 105.8 MB / 1.229 GB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.6351/32.42, allocations: 125.3 MB / 8.357 GB, free: 102.4 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.01079/32.43, allocations: 32.84 MB / 8.389 GB, free: 68.09 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006889/32.43, allocations: 112.7 kB / 8.389 GB, free: 68.09 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6344/33.07, allocations: 144.6 MB / 8.53 GB, free: 8.852 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01256/33.08, allocations: 2.032 MB / 8.532 GB, free: 6.969 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43/34.51, allocations: 68.76 MB / 8.6 GB, free: 155.2 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02397/34.53, allocations: 0.938 MB / 8.6 GB, free: 155.1 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00586/34.54, allocations: 0.8342 MB / 8.601 GB, free: 155.1 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/34.54, allocations: 8.156 kB / 8.601 GB, free: 155.1 MB / 1.276 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6249/35.16, allocations: 122.2 MB / 8.721 GB, free: 154.7 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005814/35.16, allocations: 113.9 kB / 8.721 GB, free: 154.7 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6394/35.8, allocations: 144.5 MB / 8.862 GB, free: 149.4 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/35.81, allocations: 2.003 MB / 8.864 GB, free: 149 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1484/35.96, allocations: 73.28 MB / 8.935 GB, free: 107.4 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02316/35.99, allocations: 0.9174 MB / 8.936 GB, free: 106.5 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006003/35.99, allocations: 0.7819 MB / 8.937 GB, free: 105.8 MB / 1.276 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (889): * Single equations (assignments): 811 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,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 {33 119} Notification: Performance of prepare postOptimizeDAE: time 0.009969/36, allocations: 346.5 kB / 8.937 GB, free: 105.6 MB / 1.276 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 1.845/37.85, allocations: 119.3 MB / 9.054 GB, free: 136 MB / 1.276 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008902/37.86, allocations: 1.479 MB / 9.055 GB, free: 136 MB / 1.276 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2079/38.06, allocations: 44.47 MB / 9.099 GB, free: 135.4 MB / 1.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002137/38.06, allocations: 70.28 kB / 9.099 GB, free: 135.4 MB / 1.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001115/38.06, allocations: 28.88 kB / 9.099 GB, free: 135.4 MB / 1.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1736/38.24, allocations: 39.24 MB / 9.137 GB, free: 134.8 MB / 1.276 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2223/38.46, allocations: 59.41 MB / 9.195 GB, free: 130.8 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.357e-05/38.46, allocations: 4.438 kB / 9.195 GB, free: 130.8 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0069/38.47, allocations: 1.073 MB / 9.196 GB, free: 130.8 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1849/38.65, allocations: 41.82 MB / 9.237 GB, free: 130.7 MB / 1.276 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003017/38.65, allocations: 157.2 kB / 9.237 GB, free: 130.7 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05622/38.71, allocations: 28.79 MB / 9.265 GB, free: 124.8 MB / 1.276 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.986e-06/38.71, allocations: 4.844 kB / 9.265 GB, free: 124.8 MB / 1.276 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.186/38.9, allocations: 50.04 MB / 9.314 GB, free: 123 MB / 1.276 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01622/38.91, allocations: 3.229 MB / 9.317 GB, free: 122.1 MB / 1.276 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007134/38.92, allocations: 81.66 kB / 9.317 GB, free: 122.1 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01692/38.94, allocations: 0.7992 MB / 9.318 GB, free: 122.1 MB / 1.276 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003388/38.94, allocations: 442.4 kB / 9.319 GB, free: 122 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001804/38.94, allocations: 267.2 kB / 9.319 GB, free: 122 MB / 1.276 GB Notification: Performance of sorting global known variables: time 0.02727/38.97, allocations: 10.39 MB / 9.329 GB, free: 121.6 MB / 1.276 GB Notification: Performance of sort global known variables: time 9.82e-07/38.97, allocations: 1.156 kB / 9.329 GB, free: 121.6 MB / 1.276 GB Notification: Performance of remove unused functions: time 0.05801/39.03, allocations: 7.848 MB / 9.337 GB, free: 121.6 MB / 1.276 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 (503): * Single equations (assignments): 481 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,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 {33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.2179/39.25, allocations: 54.84 MB / 9.39 GB, free: 97.22 MB / 1.276 GB Notification: Performance of simCode: created initialization part: time 0.07503/39.32, allocations: 36.61 MB / 9.426 GB, free: 77.06 MB / 1.276 GB Notification: Performance of simCode: created event and clocks part: time 1.969e-05/39.32, allocations: 14.59 kB / 9.426 GB, free: 77.05 MB / 1.276 GB Notification: Performance of simCode: created simulation system equations: time 0.01813/39.34, allocations: 8.751 MB / 9.434 GB, free: 72.55 MB / 1.276 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04486/39.38, allocations: 7.588 MB / 9.442 GB, free: 68.55 MB / 1.276 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0911/39.48, allocations: 30.23 MB / 9.471 GB, free: 46.79 MB / 1.276 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0178/39.49, allocations: 8.989 MB / 9.48 GB, free: 40.86 MB / 1.276 GB Notification: Performance of simCode: alias equations: time 0.04039/39.53, allocations: 8.027 MB / 9.488 GB, free: 36.25 MB / 1.276 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01463/39.55, allocations: 7.394 MB / 9.495 GB, free: 29.41 MB / 1.276 GB Notification: Performance of SimCode: time 2.875e-06/39.55, allocations: 0 / 9.495 GB, free: 29.41 MB / 1.276 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.173/43.72, allocations: 0.5656 GB / 10.06 GB, free: 194.1 MB / 1.339 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/43.72, allocations: 162.3 kB / 10.06 GB, free: 193.9 MB / 1.339 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.95/83.67, allocations: 0 / 10.06 GB, free: 193.9 MB / 1.339 GB (rm -f Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Examples_FlowSystem_Basic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Examples_FlowSystem_Basic.fmu > Buildings_8_Buildings.Fluid.Examples.FlowSystem.Basic.pipe 2>&1)