Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7569/0.7569, allocations: 127.4 MB / 134.9 MB, free: 3.469 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 176 kB / 164.6 MB, free: 11.62 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.2 MB / 399.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000988/0.0009878, allocations: 96.64 kB / 476.7 MB, free: 1.457 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.154e-05/2.132e-05, allocations: 5.25 kB / 0.5467 GB, free: 95.51 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1648, allocations: 76.77 MB / 0.6216 GB, free: 42.98 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/1.422, allocations: 428.9 MB / 1.04 GB, free: 221.2 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/1.422, allocations: 100.6 kB / 1.041 GB, free: 221.2 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 41.02/42.45, allocations: 9.837 GB / 10.88 GB, free: 73.34 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.513e-06/42.45, allocations: 0 / 10.88 GB, free: 73.34 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.002902/42.45, allocations: 345.8 kB / 10.88 GB, free: 73.28 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1489 * Number of variables: 1489 Notification: Performance of Generate backend data structure: time 0.04479/42.49, allocations: 11.04 MB / 10.89 GB, free: 68.25 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/42.49, allocations: 6.906 kB / 10.89 GB, free: 68.25 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01833/42.51, allocations: 2.366 MB / 10.89 GB, free: 67.43 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06447/42.58, allocations: 19.14 MB / 10.91 GB, free: 64.07 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006159/42.58, allocations: 195.4 kB / 10.91 GB, free: 64.06 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004643/42.58, allocations: 423.5 kB / 10.91 GB, free: 64.06 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02997/42.61, allocations: 17.75 MB / 10.93 GB, free: 49.09 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03349/42.65, allocations: 12.14 MB / 10.94 GB, free: 39.73 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004556/42.65, allocations: 7.938 kB / 10.94 GB, free: 39.72 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003961/42.65, allocations: 11.94 kB / 10.94 GB, free: 39.71 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/42.65, allocations: 150 kB / 10.94 GB, free: 39.57 MB / 0.9167 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 1.052/43.7, allocations: 69.13 MB / 11.01 GB, free: 69.37 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/43.72, allocations: 10.12 MB / 11.02 GB, free: 69.22 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01234/43.73, allocations: 8.683 MB / 11.03 GB, free: 69.16 MB / 0.9167 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.07148/43.8, allocations: 27.41 MB / 11.05 GB, free: 61.32 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0165/43.82, allocations: 7.979 MB / 11.06 GB, free: 61.22 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04856/43.87, allocations: 15.19 MB / 11.07 GB, free: 61.22 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=389): time 6.392e-05/43.87, allocations: 3.562 kB / 11.07 GB, free: 61.22 MB / 0.9167 GB Notification: Performance of matching and sorting (n=391): time 0.1725/44.04, allocations: 47.7 MB / 11.12 GB, free: 59.11 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/44.04, allocations: 93.47 kB / 11.12 GB, free: 59.04 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03709/44.08, allocations: 11.03 MB / 11.13 GB, free: 58.39 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.00436/44.08, allocations: 43.2 kB / 11.13 GB, free: 58.36 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.01139/44.09, allocations: 6.057 MB / 11.14 GB, free: 57.39 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.005201/44.1, allocations: 1.273 MB / 11.14 GB, free: 56.72 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003785/44.1, allocations: 0 / 11.14 GB, free: 56.72 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0007865/44.1, allocations: 0.5377 MB / 11.14 GB, free: 56.41 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/44.11, allocations: 7.291 MB / 11.15 GB, free: 56.38 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01665/44.13, allocations: 9.681 MB / 11.16 GB, free: 53.55 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01831/44.15, allocations: 8.251 MB / 11.16 GB, free: 53.42 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001541/44.15, allocations: 16.3 kB / 11.16 GB, free: 53.42 MB / 0.9167 GB Notification: Performance of matching and sorting (n=773) (initialization): time 0.1073/44.26, allocations: 31.85 MB / 11.2 GB, free: 52.52 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.007908/44.27, allocations: 30.01 MB / 11.22 GB, free: 21.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002284/44.27, allocations: 46.41 kB / 11.22 GB, free: 21.55 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92/46.19, allocations: 169.8 MB / 11.39 GB, free: 94.01 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00881/46.19, allocations: 1.421 MB / 11.39 GB, free: 94.01 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04897/46.24, allocations: 27.89 MB / 11.42 GB, free: 90.05 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01991/46.26, allocations: 1.161 MB / 11.42 GB, free: 90.05 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004388/46.27, allocations: 0.7464 MB / 11.42 GB, free: 90.05 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/46.27, allocations: 2.688 kB / 11.42 GB, free: 90.05 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04741/46.32, allocations: 20.64 MB / 11.44 GB, free: 89.82 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/46.32, allocations: 48.91 kB / 11.44 GB, free: 89.82 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7294/47.05, allocations: 167.1 MB / 11.6 GB, free: 25.98 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006225/47.05, allocations: 1.27 MB / 11.61 GB, free: 24.81 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04858/47.1, allocations: 28.14 MB / 11.63 GB, free: 4.418 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01701/47.12, allocations: 0.7731 MB / 11.63 GB, free: 3.703 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003585/47.12, allocations: 0.6897 MB / 11.63 GB, free: 3.059 MB / 0.9323 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * 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 (557): * Single equations (assignments): 545 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {37 59,6 79} Notification: Performance of prepare postOptimizeDAE: time 0.005328/47.13, allocations: 285.3 kB / 11.64 GB, free: 2.898 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08433/47.21, allocations: 26.88 MB / 11.66 GB, free: 15.57 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007501/47.22, allocations: 1.137 MB / 11.66 GB, free: 15.01 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01/48.23, allocations: 24.86 MB / 11.69 GB, free: 119.4 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/48.23, allocations: 50.38 kB / 11.69 GB, free: 119.4 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/48.23, allocations: 0 / 11.69 GB, free: 119.4 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05957/48.29, allocations: 20.19 MB / 11.71 GB, free: 119 MB / 0.9636 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 postOpt removeSimpleEquations (simulation): time 0.1072/48.39, allocations: 41.44 MB / 11.75 GB, free: 113.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.235e-05/48.4, allocations: 4.734 kB / 11.75 GB, free: 113.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004897/48.4, allocations: 0.8402 MB / 11.75 GB, free: 113.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2144/48.61, allocations: 48.84 MB / 11.8 GB, free: 113.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001915/48.62, allocations: 86.42 kB / 11.8 GB, free: 113.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09882/48.72, allocations: 40.89 MB / 11.84 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.657e-06/48.72, allocations: 4.516 kB / 11.84 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08276/48.8, allocations: 29.33 MB / 11.86 GB, free: 106.5 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01157/48.81, allocations: 2.59 MB / 11.87 GB, free: 106.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006423/48.82, allocations: 6.625 kB / 11.87 GB, free: 106.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0182/48.83, allocations: 0.9994 MB / 11.87 GB, free: 106.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00298/48.84, allocations: 365.5 kB / 11.87 GB, free: 106.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001859/48.84, allocations: 226 kB / 11.87 GB, free: 106.3 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.02429/48.86, allocations: 8.26 MB / 11.88 GB, free: 106 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6.71e-07/48.86, allocations: 0 / 11.88 GB, free: 106 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.05709/48.92, allocations: 6.146 MB / 11.88 GB, free: 106 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * 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 (318): * Single equations (assignments): 299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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: 0 * Non-linear torn systems: 2 {38 56,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.0902/49.01, allocations: 34.57 MB / 11.92 GB, free: 92.39 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.07359/49.08, allocations: 29.93 MB / 11.95 GB, free: 76.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/49.08, allocations: 4 kB / 11.95 GB, free: 76.59 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.02043/49.11, allocations: 8.539 MB / 11.95 GB, free: 68.95 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03826/49.14, allocations: 6.038 MB / 11.96 GB, free: 64.98 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0958/49.24, allocations: 26.96 MB / 11.99 GB, free: 42.95 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009151/49.25, allocations: 6.728 MB / 11.99 GB, free: 38.29 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.02742/49.28, allocations: 5.75 MB / 12 GB, free: 34.54 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009336/49.29, allocations: 5.48 MB / 12 GB, free: 29.48 MB / 0.9636 GB Notification: Performance of SimCode: time 1.563e-06/49.29, allocations: 0 / 12 GB, free: 29.48 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.743/53.03, allocations: 0.5027 GB / 12.51 GB, free: 161 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/53.03, allocations: 174.6 kB / 12.51 GB, free: 160.8 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.31/77.34, allocations: 0 / 12.51 GB, free: 160.8 MB / 1.026 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_FlowSystem_Simplified5_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_FlowSystem_Simplified5.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1)