Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_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.WaterCooler_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterCooler_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterCooler_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.8367/0.8367, allocations: 141.8 MB / 149.3 MB, free: 9.211 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 168.8 kB / 182.2 MB, free: 9.43 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.625/1.625, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.001255/0.001255, allocations: 93.72 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002201/0.002201, allocations: 273.7 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.136e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5425/0.5425, allocations: 82.77 MB / 0.7575 GB, free: 31.9 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.033/1.576, allocations: 412 MB / 1.16 GB, free: 2.398 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/1.576, allocations: 95.03 kB / 1.16 GB, free: 2.355 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.113/6.689, allocations: 1.177 GB / 2.337 GB, free: 95.83 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.182e-06/6.689, allocations: 0 / 2.337 GB, free: 95.83 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002369/6.689, allocations: 55.58 kB / 2.337 GB, free: 95.82 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.004714/6.694, allocations: 2.02 MB / 2.339 GB, free: 94.91 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/6.694, allocations: 11.22 kB / 2.339 GB, free: 94.91 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/6.696, allocations: 458.7 kB / 2.339 GB, free: 94.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005603/6.701, allocations: 2.252 MB / 2.342 GB, free: 94.42 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.628e-05/6.702, allocations: 37.92 kB / 2.342 GB, free: 94.42 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/6.702, allocations: 73.28 kB / 2.342 GB, free: 94.41 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001488/6.703, allocations: 0.78 MB / 2.343 GB, free: 94.41 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/6.705, allocations: 1.058 MB / 2.344 GB, free: 94.15 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/6.705, allocations: 0 / 2.344 GB, free: 94.15 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.743e-05/6.705, allocations: 2.281 kB / 2.344 GB, free: 94.15 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/6.705, allocations: 45.92 kB / 2.344 GB, free: 94.14 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.009187/6.714, allocations: 6.751 MB / 2.35 GB, free: 90.07 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/6.716, allocations: 1.131 MB / 2.351 GB, free: 89.48 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/6.716, allocations: 314.1 kB / 2.352 GB, free: 89.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005697/6.722, allocations: 2.988 MB / 2.355 GB, free: 87.55 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/6.722, allocations: 336.9 kB / 2.355 GB, free: 87.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007495/6.723, allocations: 73.06 kB / 2.355 GB, free: 87.47 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=62): time 3.166e-06/6.723, allocations: 0 / 2.355 GB, free: 87.47 MB / 0.7136 GB Notification: Performance of matching and sorting (n=62): time 0.006931/6.73, allocations: 1.484 MB / 2.356 GB, free: 87.34 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/6.73, allocations: 113.5 kB / 2.357 GB, free: 87.21 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/6.732, allocations: 1.218 MB / 2.358 GB, free: 87.04 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.000117/6.732, allocations: 29.14 kB / 2.358 GB, free: 87 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006984/6.733, allocations: 0.8581 MB / 2.359 GB, free: 86.69 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/6.733, allocations: 218.2 kB / 2.359 GB, free: 86.55 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/6.733, allocations: 0 / 2.359 GB, free: 86.55 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.822e-05/6.733, allocations: 349.4 kB / 2.359 GB, free: 86.24 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/6.734, allocations: 248.1 kB / 2.359 GB, free: 86.24 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/6.734, allocations: 0.6587 MB / 2.36 GB, free: 85.74 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006042/6.74, allocations: 1.167 MB / 2.361 GB, free: 85.73 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/6.74, allocations: 0 / 2.361 GB, free: 85.73 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.007336/6.747, allocations: 1.79 MB / 2.363 GB, free: 85.6 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001149/6.749, allocations: 4.45 MB / 2.367 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/6.749, allocations: 14.78 kB / 2.367 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.304e-05/6.749, allocations: 18.12 kB / 2.367 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009259/6.75, allocations: 243.6 kB / 2.367 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/6.75, allocations: 23.66 kB / 2.367 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/6.751, allocations: 104.1 kB / 2.368 GB, free: 80.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/6.752, allocations: 55.58 kB / 2.368 GB, free: 80.91 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/6.752, allocations: 3.906 kB / 2.368 GB, free: 80.91 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006532/6.758, allocations: 1.576 MB / 2.369 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/6.758, allocations: 10.56 kB / 2.369 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/6.758, allocations: 24.39 kB / 2.369 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000853/6.759, allocations: 242.5 kB / 2.369 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/6.759, allocations: 23.92 kB / 2.369 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/6.761, allocations: 92.08 kB / 2.37 GB, free: 80.89 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.214e-05/6.761, allocations: 54.34 kB / 2.37 GB, free: 80.89 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.0003315/6.761, allocations: 143.6 kB / 2.37 GB, free: 80.77 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006606/6.768, allocations: 1.448 MB / 2.371 GB, free: 80.63 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/6.768, allocations: 162.4 kB / 2.371 GB, free: 80.55 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006881/6.775, allocations: 1.694 MB / 2.373 GB, free: 80.45 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/6.775, allocations: 10.59 kB / 2.373 GB, free: 80.45 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/6.775, allocations: 0 / 2.373 GB, free: 80.45 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005818/6.781, allocations: 1.537 MB / 2.374 GB, free: 80.17 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.00952/6.79, allocations: 2.792 MB / 2.377 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/6.79, allocations: 5.531 kB / 2.377 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006597/6.791, allocations: 140.8 kB / 2.377 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000189/6.791, allocations: 24.81 kB / 2.377 GB, free: 79.83 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-05/6.791, allocations: 16.67 kB / 2.377 GB, free: 79.83 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000903/6.792, allocations: 1.257 MB / 2.379 GB, free: 78.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/6.792, allocations: 10.02 kB / 2.379 GB, free: 78.64 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0072/6.799, allocations: 2.059 MB / 2.381 GB, free: 78.33 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007329/6.8, allocations: 333.2 kB / 2.381 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/6.8, allocations: 3.25 kB / 2.381 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008667/6.801, allocations: 75.28 kB / 2.381 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/6.801, allocations: 52.42 kB / 2.381 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.2e-05/6.801, allocations: 34.58 kB / 2.381 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001391/6.803, allocations: 0.906 MB / 2.382 GB, free: 78.03 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/6.803, allocations: 0 / 2.382 GB, free: 78.03 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003893/6.807, allocations: 0.9596 MB / 2.383 GB, free: 77.87 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,coo.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.009573/6.816, allocations: 3.862 MB / 2.387 GB, free: 76.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002045/6.818, allocations: 1.271 MB / 2.388 GB, free: 76.54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/6.818, allocations: 3.25 kB / 2.388 GB, free: 76.54 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0006181/6.819, allocations: 450.5 kB / 2.388 GB, free: 76.44 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003279/6.822, allocations: 0.6215 MB / 2.389 GB, free: 76.4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/6.828, allocations: 2.67 MB / 2.392 GB, free: 75.53 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/6.829, allocations: 1.397 MB / 2.393 GB, free: 74.79 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002537/6.831, allocations: 0.5883 MB / 2.394 GB, free: 74.7 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007633/6.832, allocations: 0.6713 MB / 2.394 GB, free: 74.7 MB / 0.7136 GB Notification: Performance of SimCode: time 1.193e-06/6.832, allocations: 0 / 2.394 GB, free: 74.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09376/6.926, allocations: 46.5 MB / 2.44 GB, free: 66.04 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/6.926, allocations: 182.8 kB / 2.44 GB, free: 65.85 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.77/10.7, allocations: 0 / 2.44 GB, free: 65.85 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterCooler_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterCooler_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1)