Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.476/2.476, allocations: 284.9 MB / 292.4 MB, free: 10.54 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.001511/0.001511, allocations: 188.8 kB / 360.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001135/0.001134, allocations: 94.17 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.898e-05/2.931e-05, allocations: 8 kB / 0.8509 GB, free: 3.355 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8274/0.8274, allocations: 115.3 MB / 0.9634 GB, free: 78.66 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.332/2.159, allocations: 447.1 MB / 1.4 GB, free: 121.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/2.16, allocations: 92.72 kB / 1.4 GB, free: 121.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.86/8.02, allocations: 1.128 GB / 2.528 GB, free: 149.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.693e-06/8.02, allocations: 0 / 2.528 GB, free: 149.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003327/8.02, allocations: 54.28 kB / 2.528 GB, free: 149.7 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006594/8.027, allocations: 2.183 MB / 2.53 GB, free: 148.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/8.027, allocations: 7.781 kB / 2.53 GB, free: 148.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002766/8.029, allocations: 383.9 kB / 2.531 GB, free: 148 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008968/8.038, allocations: 2.465 MB / 2.533 GB, free: 146.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.462e-05/8.039, allocations: 40.31 kB / 2.533 GB, free: 146.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/8.039, allocations: 86.58 kB / 2.533 GB, free: 146.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002466/8.041, allocations: 0.8512 MB / 2.534 GB, free: 145.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/8.044, allocations: 1.184 MB / 2.535 GB, free: 145.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.173e-05/8.044, allocations: 3.844 kB / 2.535 GB, free: 145.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/8.044, allocations: 0 / 2.535 GB, free: 145.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.262e-05/8.045, allocations: 42.8 kB / 2.535 GB, free: 145.2 MB / 0.948 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.01215/8.057, allocations: 6.937 MB / 2.542 GB, free: 139 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/8.059, allocations: 1.184 MB / 2.543 GB, free: 138.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007103/8.059, allocations: 334.9 kB / 2.543 GB, free: 137.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004995/8.064, allocations: 2.235 MB / 2.546 GB, free: 135.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008009/8.065, allocations: 377.8 kB / 2.546 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009675/8.066, allocations: 70.28 kB / 2.546 GB, free: 135.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=68): time 4.218e-06/8.066, allocations: 0 / 2.546 GB, free: 135.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=68): time 0.002897/8.069, allocations: 0.8173 MB / 2.547 GB, free: 135.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/8.069, allocations: 165.1 kB / 2.547 GB, free: 135 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/8.071, allocations: 1.195 MB / 2.548 GB, free: 134.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002366/8.072, allocations: 25.7 kB / 2.548 GB, free: 134.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009106/8.073, allocations: 0.8919 MB / 2.549 GB, free: 133.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/8.073, allocations: 235.6 kB / 2.549 GB, free: 133.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/8.073, allocations: 0 / 2.549 GB, free: 133.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/8.073, allocations: 347.5 kB / 2.55 GB, free: 133 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/8.074, allocations: 284.9 kB / 2.55 GB, free: 132.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008567/8.075, allocations: 0.6559 MB / 2.55 GB, free: 132.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001855/8.077, allocations: 467.7 kB / 2.551 GB, free: 132 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/8.077, allocations: 3.375 kB / 2.551 GB, free: 132 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003499/8.08, allocations: 1.108 MB / 2.552 GB, free: 131.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000794/8.081, allocations: 3.737 MB / 2.556 GB, free: 127.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.064e-05/8.081, allocations: 11.12 kB / 2.556 GB, free: 127.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.775e-05/8.081, allocations: 12.75 kB / 2.556 GB, free: 127.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/8.083, allocations: 253.1 kB / 2.556 GB, free: 127.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.065e-05/8.083, allocations: 18.89 kB / 2.556 GB, free: 127.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/8.085, allocations: 111.1 kB / 2.556 GB, free: 127.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/8.085, allocations: 56.92 kB / 2.556 GB, free: 127.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/8.085, allocations: 3.5 kB / 2.556 GB, free: 127.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00296/8.088, allocations: 0.8927 MB / 2.557 GB, free: 127 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/8.089, allocations: 13.25 kB / 2.557 GB, free: 127 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/8.089, allocations: 13.81 kB / 2.557 GB, free: 127 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/8.09, allocations: 251.5 kB / 2.557 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/8.09, allocations: 21.55 kB / 2.557 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/8.092, allocations: 109.4 kB / 2.557 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/8.093, allocations: 50.3 kB / 2.557 GB, free: 126.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (121): * Single equations (assignments): 117 * 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.0003498/8.093, allocations: 147.9 kB / 2.558 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00275/8.096, allocations: 0.7752 MB / 2.558 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/8.096, allocations: 164.9 kB / 2.558 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003129/8.099, allocations: 0.9817 MB / 2.559 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/8.099, allocations: 10.95 kB / 2.559 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/8.099, allocations: 7.156 kB / 2.559 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001948/8.101, allocations: 0.6961 MB / 2.56 GB, free: 125.4 MB / 0.948 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.005859/8.107, allocations: 2.132 MB / 2.562 GB, free: 124 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/8.107, allocations: 0 / 2.562 GB, free: 124 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/8.109, allocations: 162 kB / 2.562 GB, free: 123.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002306/8.109, allocations: 23.34 kB / 2.562 GB, free: 123.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-05/8.109, allocations: 15.27 kB / 2.562 GB, free: 123.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009955/8.11, allocations: 1.275 MB / 2.564 GB, free: 122.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/8.11, allocations: 0 / 2.564 GB, free: 122.6 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/8.113, allocations: 1.394 MB / 2.565 GB, free: 121.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/8.115, allocations: 348 kB / 2.565 GB, free: 121.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/8.115, allocations: 7.984 kB / 2.565 GB, free: 121.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/8.117, allocations: 99.75 kB / 2.565 GB, free: 121.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/8.117, allocations: 61.03 kB / 2.565 GB, free: 121.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/8.117, allocations: 38.31 kB / 2.565 GB, free: 121.4 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00178/8.119, allocations: 0.8924 MB / 2.566 GB, free: 120.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.01e-07/8.119, allocations: 0 / 2.566 GB, free: 120.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004749/8.123, allocations: 1.08 MB / 2.567 GB, free: 120.6 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (76): * Single equations (assignments): 68 * 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.006332/8.13, allocations: 3.108 MB / 2.57 GB, free: 118.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00301/8.133, allocations: 1.425 MB / 2.572 GB, free: 118.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/8.133, allocations: 3.906 kB / 2.572 GB, free: 118.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001031/8.134, allocations: 473.2 kB / 2.572 GB, free: 117.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006177/8.14, allocations: 0.7382 MB / 2.573 GB, free: 117.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009115/8.149, allocations: 2.808 MB / 2.576 GB, free: 115.2 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/8.15, allocations: 1.445 MB / 2.577 GB, free: 113.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.004329/8.155, allocations: 0.5586 MB / 2.578 GB, free: 113.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/8.156, allocations: 0.7141 MB / 2.578 GB, free: 112.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.192e-06/8.156, allocations: 0 / 2.578 GB, free: 112.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1412/8.298, allocations: 51.07 MB / 2.628 GB, free: 62.29 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/8.298, allocations: 179 kB / 2.628 GB, free: 62.09 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.806/13.1, allocations: 0 / 2.628 GB, free: 62.09 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)