Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",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.6874/0.6874, 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.001003/0.001003, allocations: 189.4 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.215/1.215, allocations: 221.3 MB / 441.4 MB, free: 4.648 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.0008146/0.0008148, allocations: 99.17 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001698/0.001698, allocations: 271.7 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.953e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3348, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6698/1.005, allocations: 412.6 MB / 1.167 GB, free: 10.93 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/1.005, allocations: 89.89 kB / 1.167 GB, free: 10.88 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.802/4.807, allocations: 1.183 GB / 2.35 GB, free: 89.71 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.252e-06/4.807, allocations: 2.5 kB / 2.35 GB, free: 89.71 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001873/4.807, allocations: 49.8 kB / 2.35 GB, free: 89.71 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003119/4.81, allocations: 2.032 MB / 2.352 GB, free: 88.82 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/4.81, allocations: 7.531 kB / 2.352 GB, free: 88.82 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/4.81, allocations: 167.7 kB / 2.352 GB, free: 88.78 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/4.812, allocations: 454.8 kB / 2.353 GB, free: 88.66 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004348/4.816, allocations: 2.256 MB / 2.355 GB, free: 88.28 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/4.816, allocations: 93.66 kB / 2.355 GB, free: 88.27 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/4.816, allocations: 125.3 kB / 2.355 GB, free: 88.27 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/4.818, allocations: 1.211 MB / 2.356 GB, free: 88 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/4.818, allocations: 3.875 kB / 2.356 GB, free: 88 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/4.818, allocations: 51.66 kB / 2.356 GB, free: 88 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.332e-05/4.818, allocations: 40.33 kB / 2.356 GB, free: 88 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/4.819, allocations: 0.8361 MB / 2.357 GB, free: 87.98 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.006442/4.826, allocations: 6.929 MB / 2.364 GB, free: 83.87 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/4.827, allocations: 1.135 MB / 2.365 GB, free: 83.27 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/4.827, allocations: 327.3 kB / 2.365 GB, free: 83.26 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003952/4.831, allocations: 3.021 MB / 2.368 GB, free: 81.34 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004688/4.832, allocations: 355 kB / 2.369 GB, free: 81.29 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004092/4.832, allocations: 96.17 kB / 2.369 GB, free: 81.26 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=62): time 2.425e-06/4.832, allocations: 0 / 2.369 GB, free: 81.26 MB / 0.7136 GB Notification: Performance of matching and sorting (n=62): time 0.001034/4.833, allocations: 0.6786 MB / 2.369 GB, free: 81.12 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/4.833, allocations: 107.3 kB / 2.369 GB, free: 80.99 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/4.835, allocations: 1.317 MB / 2.371 GB, free: 80.81 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.102e-05/4.835, allocations: 45.25 kB / 2.371 GB, free: 80.78 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005347/4.835, allocations: 0.8783 MB / 2.372 GB, free: 80.47 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/4.835, allocations: 213.6 kB / 2.372 GB, free: 80.34 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/4.835, allocations: 19 kB / 2.372 GB, free: 80.34 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.417e-05/4.836, allocations: 349.6 kB / 2.372 GB, free: 80.03 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/4.836, allocations: 257.7 kB / 2.372 GB, free: 80.03 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/4.836, allocations: 0.6716 MB / 2.373 GB, free: 79.52 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004688/4.837, allocations: 389.9 kB / 2.373 GB, free: 79.48 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/4.837, allocations: 3.812 kB / 2.373 GB, free: 79.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001337/4.838, allocations: 1.071 MB / 2.374 GB, free: 79.31 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.000673/4.839, allocations: 4.456 MB / 2.379 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/4.839, allocations: 10.09 kB / 2.379 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/4.839, allocations: 17.84 kB / 2.379 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008253/4.84, allocations: 246.5 kB / 2.379 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/4.84, allocations: 21.78 kB / 2.379 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/4.841, allocations: 114.3 kB / 2.379 GB, free: 74.63 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.242e-05/4.841, allocations: 55.34 kB / 2.379 GB, free: 74.63 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/4.841, allocations: 3.938 kB / 2.379 GB, free: 74.63 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001154/4.842, allocations: 0.9049 MB / 2.38 GB, free: 74.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/4.842, allocations: 11.44 kB / 2.38 GB, free: 74.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/4.842, allocations: 19.17 kB / 2.38 GB, free: 74.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/4.843, allocations: 245.5 kB / 2.38 GB, free: 74.58 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/4.843, allocations: 26.89 kB / 2.38 GB, free: 74.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/4.844, allocations: 113 kB / 2.381 GB, free: 74.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.256e-05/4.844, allocations: 50.06 kB / 2.381 GB, free: 74.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (120): * Single equations (assignments): 118 * 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.0001668/4.844, allocations: 176.7 kB / 2.381 GB, free: 74.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/4.844, allocations: 167 kB / 2.381 GB, free: 74.37 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/4.846, allocations: 0.9673 MB / 2.382 GB, free: 74.26 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/4.846, allocations: 7.281 kB / 2.382 GB, free: 74.26 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/4.846, allocations: 0 / 2.382 GB, free: 74.26 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008246/4.847, allocations: 0.7909 MB / 2.383 GB, free: 73.98 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.002881/4.85, allocations: 2.201 MB / 2.385 GB, free: 73.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/4.85, allocations: 3.375 kB / 2.385 GB, free: 73.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/4.85, allocations: 135.2 kB / 2.385 GB, free: 73.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/4.85, allocations: 25.3 kB / 2.385 GB, free: 73.6 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-05/4.85, allocations: 24.22 kB / 2.385 GB, free: 73.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007413/4.851, allocations: 1.31 MB / 2.386 GB, free: 72.35 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/4.851, allocations: 0 / 2.386 GB, free: 72.35 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/4.853, allocations: 1.318 MB / 2.388 GB, free: 72.02 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005037/4.853, allocations: 349.6 kB / 2.388 GB, free: 71.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002108/4.853, allocations: 19.06 kB / 2.388 GB, free: 71.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008571/4.854, allocations: 92.47 kB / 2.388 GB, free: 71.82 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/4.854, allocations: 54.95 kB / 2.388 GB, free: 71.82 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.451e-05/4.855, allocations: 32.78 kB / 2.388 GB, free: 71.82 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001273/4.856, allocations: 1.062 MB / 2.389 GB, free: 71.66 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.8e-07/4.856, allocations: 0 / 2.389 GB, free: 71.66 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003229/4.859, allocations: 0.9865 MB / 2.39 GB, free: 71.51 MB / 0.7136 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.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003638/4.863, allocations: 3.146 MB / 2.393 GB, free: 70.38 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001721/4.864, allocations: 1.353 MB / 2.394 GB, free: 70.22 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/4.864, allocations: 0 / 2.394 GB, free: 70.22 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005636/4.865, allocations: 469.6 kB / 2.395 GB, free: 70.1 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/4.868, allocations: 0.7242 MB / 2.396 GB, free: 70.08 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/4.873, allocations: 2.758 MB / 2.398 GB, free: 69.32 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/4.873, allocations: 1.395 MB / 2.4 GB, free: 68.6 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002162/4.875, allocations: 0.6024 MB / 2.4 GB, free: 68.58 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006535/4.876, allocations: 0.6782 MB / 2.401 GB, free: 68.57 MB / 0.7136 GB Notification: Performance of SimCode: time 6.61e-07/4.876, allocations: 0 / 2.401 GB, free: 68.57 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06957/4.946, allocations: 56.19 MB / 2.456 GB, free: 63.55 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/4.946, allocations: 226.8 kB / 2.456 GB, free: 63.32 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.61/8.556, allocations: 0 / 2.456 GB, free: 63.32 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)