Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6933/0.6933, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009898/0.0009898, allocations: 182 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 221.3 MB / 441.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007988/0.000799, allocations: 98.59 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00165/0.00165, allocations: 278 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.766e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.359, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6552/1.014, allocations: 405.6 MB / 1.16 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/1.015, allocations: 90.02 kB / 1.16 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.752/4.767, allocations: 1.148 GB / 2.308 GB, free: 86.53 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.954e-06/4.767, allocations: 0 / 2.308 GB, free: 86.53 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002015/4.767, allocations: 62.73 kB / 2.308 GB, free: 86.53 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.003858/4.771, allocations: 2.13 MB / 2.31 GB, free: 85.66 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/4.771, allocations: 9.719 kB / 2.31 GB, free: 85.66 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/4.771, allocations: 181.8 kB / 2.311 GB, free: 85.62 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/4.773, allocations: 373.6 kB / 2.311 GB, free: 85.5 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004453/4.777, allocations: 2.427 MB / 2.313 GB, free: 85.14 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.325e-05/4.777, allocations: 104.1 kB / 2.313 GB, free: 85.14 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/4.777, allocations: 131.1 kB / 2.314 GB, free: 85.14 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/4.779, allocations: 1.32 MB / 2.315 GB, free: 84.88 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.899e-05/4.779, allocations: 9.219 kB / 2.315 GB, free: 84.88 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/4.779, allocations: 50.59 kB / 2.315 GB, free: 84.88 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/4.779, allocations: 50.28 kB / 2.315 GB, free: 84.88 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/4.781, allocations: 0.9186 MB / 2.316 GB, free: 84.86 MB / 0.7136 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.006851/4.787, allocations: 7.197 MB / 2.323 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/4.788, allocations: 1.163 MB / 2.324 GB, free: 80.3 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/4.789, allocations: 378.4 kB / 2.324 GB, free: 80.29 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003682/4.793, allocations: 2.609 MB / 2.327 GB, free: 78.94 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005346/4.793, allocations: 421 kB / 2.327 GB, free: 78.86 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005125/4.794, allocations: 91.98 kB / 2.327 GB, free: 78.84 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=66): time 2.615e-06/4.794, allocations: 0 / 2.327 GB, free: 78.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66): time 0.001081/4.795, allocations: 0.7235 MB / 2.328 GB, free: 78.69 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/4.795, allocations: 165.6 kB / 2.328 GB, free: 78.5 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/4.796, allocations: 1.266 MB / 2.33 GB, free: 78.34 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.293e-05/4.796, allocations: 48.08 kB / 2.33 GB, free: 78.3 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005371/4.797, allocations: 0.8866 MB / 2.33 GB, free: 77.98 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/4.797, allocations: 235.9 kB / 2.331 GB, free: 77.84 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/4.797, allocations: 18.06 kB / 2.331 GB, free: 77.84 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.217e-05/4.797, allocations: 343.9 kB / 2.331 GB, free: 77.53 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/4.797, allocations: 270.5 kB / 2.331 GB, free: 77.53 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/4.798, allocations: 0.6416 MB / 2.332 GB, free: 77.07 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/4.798, allocations: 395.5 kB / 2.332 GB, free: 77.03 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/4.798, allocations: 3.594 kB / 2.332 GB, free: 77.03 MB / 0.7136 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001333/4.8, allocations: 1.071 MB / 2.333 GB, free: 76.86 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006076/4.8, allocations: 3.992 MB / 2.337 GB, free: 72.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/4.8, allocations: 10.34 kB / 2.337 GB, free: 72.66 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/4.8, allocations: 22.23 kB / 2.337 GB, free: 72.66 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008167/4.801, allocations: 238.3 kB / 2.337 GB, free: 72.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/4.801, allocations: 17.84 kB / 2.338 GB, free: 72.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/4.802, allocations: 123.9 kB / 2.338 GB, free: 72.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-05/4.803, allocations: 53.92 kB / 2.338 GB, free: 72.64 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/4.803, allocations: 6.484 kB / 2.338 GB, free: 72.64 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001154/4.804, allocations: 0.9012 MB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/4.804, allocations: 11.75 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/4.804, allocations: 15.25 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007431/4.805, allocations: 237.8 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/4.805, allocations: 18.06 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009199/4.805, allocations: 113.8 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.158e-05/4.806, allocations: 51.97 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (118): * Single equations (assignments): 116 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0001838/4.806, allocations: 170.6 kB / 2.339 GB, free: 72.48 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/4.806, allocations: 166.2 kB / 2.339 GB, free: 72.39 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/4.807, allocations: 0.9457 MB / 2.34 GB, free: 72.29 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/4.807, allocations: 9.438 kB / 2.34 GB, free: 72.29 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/4.807, allocations: 3.812 kB / 2.34 GB, free: 72.29 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007962/4.808, allocations: 0.6488 MB / 2.341 GB, free: 72.2 MB / 0.7136 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.00313/4.811, allocations: 2.522 MB / 2.343 GB, free: 71.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/4.811, allocations: 3.953 kB / 2.343 GB, free: 71.63 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006188/4.812, allocations: 150.9 kB / 2.343 GB, free: 71.63 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/4.812, allocations: 33.8 kB / 2.344 GB, free: 71.62 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.046e-05/4.812, allocations: 22.86 kB / 2.344 GB, free: 71.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006465/4.813, allocations: 1.311 MB / 2.345 GB, free: 70.37 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/4.813, allocations: 3.219 kB / 2.345 GB, free: 70.37 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/4.814, allocations: 1.496 MB / 2.346 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005319/4.815, allocations: 365.6 kB / 2.347 GB, free: 69.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/4.815, allocations: 16.38 kB / 2.347 GB, free: 69.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008968/4.816, allocations: 110.7 kB / 2.347 GB, free: 69.68 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/4.816, allocations: 68.23 kB / 2.347 GB, free: 69.67 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/4.816, allocations: 34.92 kB / 2.347 GB, free: 69.67 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001119/4.817, allocations: 1.05 MB / 2.348 GB, free: 69.51 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.7e-07/4.817, allocations: 5.453 kB / 2.348 GB, free: 69.51 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002638/4.82, allocations: 1.058 MB / 2.349 GB, free: 69.35 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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 (77): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.003746/4.824, allocations: 3.531 MB / 2.352 GB, free: 67.73 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001723/4.826, allocations: 1.372 MB / 2.354 GB, free: 67.57 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/4.826, allocations: 0 / 2.354 GB, free: 67.57 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0007846/4.826, allocations: 489.2 kB / 2.354 GB, free: 67.46 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003337/4.83, allocations: 0.8482 MB / 2.355 GB, free: 67.45 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004377/4.834, allocations: 2.857 MB / 2.358 GB, free: 66.61 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/4.835, allocations: 1.424 MB / 2.359 GB, free: 65.89 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002101/4.837, allocations: 0.5689 MB / 2.36 GB, free: 65.87 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007071/4.838, allocations: 0.7079 MB / 2.36 GB, free: 65.87 MB / 0.7136 GB Notification: Performance of SimCode: time 1.472e-06/4.838, allocations: 1.875 kB / 2.36 GB, free: 65.87 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07433/4.912, allocations: 59.99 MB / 2.419 GB, free: 62.98 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/4.912, allocations: 223.9 kB / 2.419 GB, free: 62.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.723/8.635, allocations: 3.938 kB / 2.419 GB, free: 62.75 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)