Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.968/0.968, allocations: 133.6 MB / 141.6 MB, free: 2.887 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.732/1.732, allocations: 221.5 MB / 395.4 MB, free: 10.79 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.00129/0.00129, allocations: 104.5 kB / 478.2 MB, free: 1.289 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.557e-05/4.557e-05, allocations: 4 kB / 0.5535 GB, free: 8.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5446/0.5446, allocations: 82.31 MB / 0.6339 GB, free: 40.71 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9951/1.54, allocations: 407.5 MB / 1.032 GB, free: 10.47 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/1.54, allocations: 89.08 kB / 1.032 GB, free: 10.43 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.943/6.483, allocations: 1.143 GB / 2.175 GB, free: 81.98 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.312e-06/6.483, allocations: 1.781 kB / 2.175 GB, free: 81.98 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0005449/6.484, allocations: 56.66 kB / 2.175 GB, free: 81.98 MB / 0.698 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.006755/6.491, allocations: 2.129 MB / 2.177 GB, free: 81.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/6.491, allocations: 11.31 kB / 2.177 GB, free: 81.1 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/6.493, allocations: 369.6 kB / 2.178 GB, free: 80.98 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008251/6.501, allocations: 2.452 MB / 2.18 GB, free: 80.62 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/6.502, allocations: 40.44 kB / 2.18 GB, free: 80.62 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005342/6.502, allocations: 86.44 kB / 2.18 GB, free: 80.61 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002869/6.505, allocations: 0.8505 MB / 2.181 GB, free: 80.61 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002465/6.508, allocations: 1.145 MB / 2.182 GB, free: 80.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/6.508, allocations: 7.688 kB / 2.182 GB, free: 80.36 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/6.508, allocations: 2.344 kB / 2.182 GB, free: 80.36 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.893e-05/6.508, allocations: 55.33 kB / 2.182 GB, free: 80.35 MB / 0.698 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.009865/6.518, allocations: 6.986 MB / 2.189 GB, free: 76.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/6.519, allocations: 1.17 MB / 2.19 GB, free: 75.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007745/6.52, allocations: 361.1 kB / 2.191 GB, free: 75.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004432/6.524, allocations: 2.573 MB / 2.193 GB, free: 74.43 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005598/6.525, allocations: 401.1 kB / 2.194 GB, free: 74.35 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007606/6.526, allocations: 79.58 kB / 2.194 GB, free: 74.32 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 3.817e-06/6.526, allocations: 2.969 kB / 2.194 GB, free: 74.32 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.002128/6.528, allocations: 0.7852 MB / 2.194 GB, free: 74.18 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/6.528, allocations: 165 kB / 2.195 GB, free: 73.98 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/6.53, allocations: 1.182 MB / 2.196 GB, free: 73.82 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.19e-05/6.53, allocations: 29.58 kB / 2.196 GB, free: 73.79 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008714/6.531, allocations: 0.8936 MB / 2.197 GB, free: 73.47 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/6.531, allocations: 225 kB / 2.197 GB, free: 73.32 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/6.531, allocations: 0 / 2.197 GB, free: 73.32 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001309/6.531, allocations: 342.9 kB / 2.197 GB, free: 73.02 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/6.532, allocations: 260.3 kB / 2.197 GB, free: 73.02 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007114/6.533, allocations: 0.632 MB / 2.198 GB, free: 72.56 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/6.534, allocations: 445.6 kB / 2.198 GB, free: 72.55 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/6.534, allocations: 7.141 kB / 2.198 GB, free: 72.55 MB / 0.698 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002483/6.536, allocations: 1.054 MB / 2.199 GB, free: 72.41 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001023/6.537, allocations: 3.994 MB / 2.203 GB, free: 68.21 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/6.537, allocations: 13.22 kB / 2.203 GB, free: 68.21 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.365e-05/6.538, allocations: 16.56 kB / 2.203 GB, free: 68.21 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000878/6.538, allocations: 239.6 kB / 2.204 GB, free: 68.21 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/6.538, allocations: 19.88 kB / 2.204 GB, free: 68.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/6.54, allocations: 101.1 kB / 2.204 GB, free: 68.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.865e-05/6.54, allocations: 52.48 kB / 2.204 GB, free: 68.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/6.54, allocations: 3.531 kB / 2.204 GB, free: 68.2 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001795/6.542, allocations: 0.8469 MB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/6.542, allocations: 10.97 kB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/6.542, allocations: 17.84 kB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008087/6.543, allocations: 237.5 kB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/6.543, allocations: 23.3 kB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/6.544, allocations: 94.69 kB / 2.205 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.009e-05/6.544, allocations: 49.05 kB / 2.205 GB, free: 68.18 MB / 0.698 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.0002315/6.544, allocations: 145.1 kB / 2.205 GB, free: 68.06 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001669/6.546, allocations: 0.7596 MB / 2.206 GB, free: 67.92 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/6.546, allocations: 163.4 kB / 2.206 GB, free: 67.83 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/6.548, allocations: 0.9393 MB / 2.207 GB, free: 67.74 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/6.548, allocations: 10.36 kB / 2.207 GB, free: 67.74 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/6.548, allocations: 0 / 2.207 GB, free: 67.74 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001119/6.549, allocations: 0.6682 MB / 2.208 GB, free: 67.64 MB / 0.698 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.004051/6.554, allocations: 2.329 MB / 2.21 GB, free: 67.13 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/6.554, allocations: 2.312 kB / 2.21 GB, free: 67.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006713/6.554, allocations: 158.5 kB / 2.21 GB, free: 67.13 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/6.554, allocations: 28.2 kB / 2.21 GB, free: 67.12 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-05/6.554, allocations: 13.8 kB / 2.21 GB, free: 67.12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007758/6.555, allocations: 1.276 MB / 2.211 GB, free: 65.94 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/6.555, allocations: 5.688 kB / 2.211 GB, free: 65.94 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002177/6.557, allocations: 1.468 MB / 2.213 GB, free: 65.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006779/6.558, allocations: 356.8 kB / 2.213 GB, free: 65.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/6.558, allocations: 7.469 kB / 2.213 GB, free: 65.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/6.559, allocations: 80.92 kB / 2.213 GB, free: 65.29 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/6.559, allocations: 64.62 kB / 2.213 GB, free: 65.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.569e-05/6.559, allocations: 35.03 kB / 2.213 GB, free: 65.28 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001254/6.561, allocations: 0.8913 MB / 2.214 GB, free: 65.17 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.1e-07/6.561, allocations: 0 / 2.214 GB, free: 65.17 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003839/6.565, allocations: 1.041 MB / 2.215 GB, free: 64.98 MB / 0.698 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.004286/6.569, allocations: 3.463 MB / 2.219 GB, free: 63.38 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001959/6.571, allocations: 1.296 MB / 2.22 GB, free: 63.22 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/6.571, allocations: 2.344 kB / 2.22 GB, free: 63.22 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006515/6.572, allocations: 473.9 kB / 2.22 GB, free: 63.12 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/6.575, allocations: 0.7296 MB / 2.221 GB, free: 63.11 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006367/6.582, allocations: 2.767 MB / 2.224 GB, free: 62.27 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/6.583, allocations: 1.439 MB / 2.225 GB, free: 61.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002547/6.585, allocations: 0.5418 MB / 2.226 GB, free: 61.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008123/6.586, allocations: 0.7186 MB / 2.226 GB, free: 61.51 MB / 0.698 GB Notification: Performance of SimCode: time 2.445e-06/6.586, allocations: 0 / 2.226 GB, free: 61.51 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09104/6.677, allocations: 49.53 MB / 2.275 GB, free: 58.93 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/6.677, allocations: 165.6 kB / 2.275 GB, free: 58.73 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.188/10.87, allocations: 0 / 2.275 GB, free: 58.73 MB / 0.698 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)