Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",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.7383/0.7383, allocations: 127.3 MB / 139.8 MB, free: 15.43 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.001041, allocations: 184.8 kB / 169.7 MB, free: 1.715 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.884/1.884, allocations: 205.1 MB / 404.5 MB, free: 1.57 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.0008775/0.0008774, allocations: 90.08 kB / 481.8 MB, free: 4.223 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.405e-05, allocations: 4 kB / 0.5533 GB, free: 54.74 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1768, allocations: 76.76 MB / 0.6282 GB, free: 9.918 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.451/1.628, allocations: 409.6 MB / 1.028 GB, free: 105.8 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/1.628, allocations: 95.12 kB / 1.028 GB, free: 105.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.225/5.853, allocations: 1.092 GB / 2.12 GB, free: 44.07 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.754e-06/5.853, allocations: 0 / 2.12 GB, free: 44.07 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002365/5.854, allocations: 50.89 kB / 2.12 GB, free: 44.02 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.004761/5.858, allocations: 2.202 MB / 2.122 GB, free: 41.78 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/5.858, allocations: 8.031 kB / 2.122 GB, free: 41.77 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002434/5.859, allocations: 190 kB / 2.122 GB, free: 41.57 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001563/5.86, allocations: 384.4 kB / 2.123 GB, free: 41.2 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/5.871, allocations: 4.845 MB / 2.127 GB, free: 36.44 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.394e-05/5.871, allocations: 103.5 kB / 2.128 GB, free: 36.34 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/5.871, allocations: 147.2 kB / 2.128 GB, free: 36.2 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/5.874, allocations: 1.416 MB / 2.129 GB, free: 34.67 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/5.874, allocations: 7.938 kB / 2.129 GB, free: 34.66 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/5.874, allocations: 52 kB / 2.129 GB, free: 34.61 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-05/5.874, allocations: 39.8 kB / 2.129 GB, free: 34.57 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/5.876, allocations: 0.9579 MB / 2.13 GB, free: 33.61 MB / 0.6667 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.007995/5.884, allocations: 7.537 MB / 2.137 GB, free: 25.56 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/5.885, allocations: 1.177 MB / 2.139 GB, free: 24.27 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/5.885, allocations: 331.6 kB / 2.139 GB, free: 23.94 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002722/5.888, allocations: 1.999 MB / 2.141 GB, free: 21.77 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007255/5.889, allocations: 433.8 kB / 2.141 GB, free: 21.32 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005753/5.889, allocations: 91.16 kB / 2.141 GB, free: 21.23 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=65): time 2.414e-06/5.889, allocations: 4 kB / 2.141 GB, free: 21.23 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65): time 0.001577/5.891, allocations: 0.823 MB / 2.142 GB, free: 20.38 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/5.891, allocations: 196.5 kB / 2.142 GB, free: 20.14 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/5.893, allocations: 1.318 MB / 2.144 GB, free: 18.83 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.47e-05/5.893, allocations: 45.7 kB / 2.144 GB, free: 18.78 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/5.894, allocations: 0.925 MB / 2.145 GB, free: 17.85 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/5.894, allocations: 238.6 kB / 2.145 GB, free: 17.62 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/5.894, allocations: 20 kB / 2.145 GB, free: 17.6 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.867e-05/5.894, allocations: 341.9 kB / 2.145 GB, free: 17.26 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004257/5.894, allocations: 294.2 kB / 2.145 GB, free: 16.98 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005925/5.895, allocations: 0.707 MB / 2.146 GB, free: 16.08 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/5.895, allocations: 430.1 kB / 2.147 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/5.895, allocations: 4 kB / 2.147 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.001595/5.897, allocations: 1.148 MB / 2.148 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008284/5.898, allocations: 4.288 MB / 2.152 GB, free: 9.84 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/5.898, allocations: 12 kB / 2.152 GB, free: 9.828 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.179e-05/5.898, allocations: 23.94 kB / 2.152 GB, free: 9.805 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009782/5.899, allocations: 267.6 kB / 2.152 GB, free: 9.543 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/5.899, allocations: 19.94 kB / 2.152 GB, free: 9.523 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/5.9, allocations: 135.7 kB / 2.152 GB, free: 9.391 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/5.901, allocations: 51.98 kB / 2.152 GB, free: 9.34 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/5.901, allocations: 4 kB / 2.152 GB, free: 9.336 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001369/5.902, allocations: 0.9635 MB / 2.153 GB, free: 8.371 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/5.902, allocations: 12 kB / 2.153 GB, free: 8.359 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/5.902, allocations: 16 kB / 2.153 GB, free: 8.344 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008611/5.903, allocations: 260.3 kB / 2.154 GB, free: 8.09 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.43e-05/5.903, allocations: 23.92 kB / 2.154 GB, free: 8.066 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/5.904, allocations: 115.8 kB / 2.154 GB, free: 7.953 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.457e-05/5.904, allocations: 51.98 kB / 2.154 GB, free: 7.902 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002407/5.905, allocations: 177.1 kB / 2.154 GB, free: 7.723 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/5.905, allocations: 165.9 kB / 2.154 GB, free: 7.559 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/5.907, allocations: 1.032 MB / 2.155 GB, free: 6.496 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/5.907, allocations: 11.98 kB / 2.155 GB, free: 6.484 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/5.907, allocations: 0 / 2.155 GB, free: 6.484 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008827/5.908, allocations: 0.7419 MB / 2.156 GB, free: 5.707 MB / 0.6667 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.003479/5.911, allocations: 2.239 MB / 2.158 GB, free: 3.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/5.911, allocations: 3.688 kB / 2.158 GB, free: 3.41 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000716/5.912, allocations: 159.7 kB / 2.158 GB, free: 3.254 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/5.912, allocations: 24.84 kB / 2.158 GB, free: 3.227 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.235e-05/5.912, allocations: 23.98 kB / 2.158 GB, free: 3.203 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007629/5.913, allocations: 1.292 MB / 2.159 GB, free: 1.781 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/5.913, allocations: 0 / 2.159 GB, free: 1.781 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/5.915, allocations: 1.378 MB / 2.161 GB, free: 372 kB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007557/5.915, allocations: 342.8 kB / 2.161 GB, free: 8 kB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.56/6.475, allocations: 17.16 kB / 2.161 GB, free: 65.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/6.478, allocations: 105.4 kB / 2.161 GB, free: 65.27 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/6.478, allocations: 52.8 kB / 2.161 GB, free: 65.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/6.478, allocations: 29.05 kB / 2.161 GB, free: 65.27 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.00246/6.481, allocations: 1.01 MB / 2.162 GB, free: 65.16 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.2e-07/6.481, allocations: 0 / 2.162 GB, free: 65.16 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.006017/6.487, allocations: 1.114 MB / 2.163 GB, free: 65.16 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005796/6.492, allocations: 3.004 MB / 2.166 GB, free: 64.32 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003084/6.496, allocations: 1.507 MB / 2.168 GB, free: 64.1 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/6.496, allocations: 0 / 2.168 GB, free: 64.1 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0007622/6.496, allocations: 471.8 kB / 2.168 GB, free: 63.99 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004384/6.501, allocations: 0.7784 MB / 2.169 GB, free: 63.98 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007296/6.508, allocations: 2.857 MB / 2.172 GB, free: 63.28 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/6.509, allocations: 1.451 MB / 2.173 GB, free: 62.55 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.003093/6.512, allocations: 0.5613 MB / 2.174 GB, free: 62.53 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/6.514, allocations: 0.7322 MB / 2.175 GB, free: 62.53 MB / 0.6667 GB Notification: Performance of SimCode: time 1.072e-06/6.514, allocations: 0 / 2.175 GB, free: 62.53 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/6.634, allocations: 59.43 MB / 2.233 GB, free: 60.03 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/6.634, allocations: 220 kB / 2.233 GB, free: 59.8 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.193/10.83, allocations: 0 / 2.233 GB, free: 59.8 MB / 0.6667 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)