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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7166/0.7166, allocations: 141.8 MB / 149.1 MB, free: 15.29 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 192.9 kB / 181.9 MB, free: 11.64 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 221.3 MB / 436 MB, free: 4.242 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009209/0.0009208, allocations: 98.08 kB / 0.507 GB, free: 18.7 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001849/0.001849, allocations: 263.2 kB / 0.5884 GB, free: 5.555 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4235/0.4254, allocations: 89.63 MB / 0.676 GB, free: 138.4 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.5833, allocations: 82.78 MB / 0.7568 GB, free: 86.32 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.59, allocations: 411.9 MB / 1.159 GB, free: 258.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/1.59, allocations: 101.1 kB / 1.159 GB, free: 258.9 MB / 0.6982 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 3.872/5.463, allocations: 1.186 GB / 2.345 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/5.463, allocations: 8.375 kB / 2.345 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002802/5.465, allocations: 490.5 kB / 2.345 GB, free: 100.2 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007791/5.473, allocations: 2.274 MB / 2.348 GB, free: 99.7 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/5.473, allocations: 39.5 kB / 2.348 GB, free: 99.7 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/5.474, allocations: 75.81 kB / 2.348 GB, free: 99.7 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002176/5.476, allocations: 0.7803 MB / 2.348 GB, free: 99.69 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/5.479, allocations: 1.07 MB / 2.349 GB, free: 99.43 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/5.479, allocations: 6.5 kB / 2.349 GB, free: 99.43 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/5.479, allocations: 3.812 kB / 2.349 GB, free: 99.43 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/5.479, allocations: 43.73 kB / 2.35 GB, free: 99.42 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/5.489, allocations: 6.962 MB / 2.356 GB, free: 95.23 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/5.489, allocations: 455.7 kB / 2.357 GB, free: 95.2 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004556/5.49, allocations: 344 kB / 2.357 GB, free: 95.19 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005313/5.495, allocations: 2.932 MB / 2.36 GB, free: 93.37 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005034/5.496, allocations: 335.6 kB / 2.36 GB, free: 93.31 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=66): time 3.897e-06/5.496, allocations: 0 / 2.36 GB, free: 93.31 MB / 0.7138 GB Notification: Performance of matching and sorting (n=66): time 0.00267/5.499, allocations: 0.8671 MB / 2.361 GB, free: 93.17 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/5.499, allocations: 117.1 kB / 2.361 GB, free: 93.05 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002619/5.501, allocations: 1.224 MB / 2.362 GB, free: 92.88 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001066/5.501, allocations: 25.7 kB / 2.362 GB, free: 92.84 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006227/5.502, allocations: 0.5664 MB / 2.363 GB, free: 92.54 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.000279/5.502, allocations: 228.2 kB / 2.363 GB, free: 92.39 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/5.502, allocations: 0 / 2.363 GB, free: 92.39 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001004/5.502, allocations: 345 kB / 2.364 GB, free: 92.08 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/5.503, allocations: 263.1 kB / 2.364 GB, free: 92.08 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/5.504, allocations: 0.6711 MB / 2.364 GB, free: 91.57 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/5.505, allocations: 0.524 MB / 2.365 GB, free: 91.57 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/5.505, allocations: 6.75 kB / 2.365 GB, free: 91.57 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002987/5.508, allocations: 1.161 MB / 2.366 GB, free: 91.43 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009627/5.509, allocations: 4.419 MB / 2.37 GB, free: 86.79 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/5.509, allocations: 15.3 kB / 2.37 GB, free: 86.79 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.614e-05/5.509, allocations: 24.55 kB / 2.37 GB, free: 86.79 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/5.51, allocations: 257 kB / 2.371 GB, free: 86.79 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.946e-05/5.511, allocations: 22.97 kB / 2.371 GB, free: 86.79 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/5.512, allocations: 151.8 kB / 2.371 GB, free: 86.73 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/5.512, allocations: 57.36 kB / 2.371 GB, free: 86.73 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.938e-06/5.512, allocations: 3.875 kB / 2.371 GB, free: 86.73 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002347/5.515, allocations: 0.9377 MB / 2.372 GB, free: 86.69 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/5.515, allocations: 14.17 kB / 2.372 GB, free: 86.69 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/5.515, allocations: 15.5 kB / 2.372 GB, free: 86.69 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009948/5.516, allocations: 252.3 kB / 2.372 GB, free: 86.68 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/5.516, allocations: 28.56 kB / 2.372 GB, free: 86.67 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/5.517, allocations: 131 kB / 2.372 GB, free: 86.64 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/5.518, allocations: 57.61 kB / 2.372 GB, free: 86.64 MB / 0.7138 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 (124): * Single equations (assignments): 122 * 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.0002893/5.518, allocations: 139.5 kB / 2.372 GB, free: 86.5 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/5.518, allocations: 167.1 kB / 2.373 GB, free: 86.42 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/5.522, allocations: 1.141 MB / 2.374 GB, free: 86.32 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/5.522, allocations: 12.05 kB / 2.374 GB, free: 86.32 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/5.522, allocations: 3.438 kB / 2.374 GB, free: 86.32 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00179/5.523, allocations: 0.9155 MB / 2.375 GB, free: 85.89 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00552/5.529, allocations: 2.172 MB / 2.377 GB, free: 84.97 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/5.529, allocations: 0 / 2.377 GB, free: 84.97 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/5.53, allocations: 147 kB / 2.377 GB, free: 84.96 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/5.53, allocations: 33.22 kB / 2.377 GB, free: 84.95 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.668e-05/5.53, allocations: 11.47 kB / 2.377 GB, free: 84.95 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008104/5.531, allocations: 1.26 MB / 2.378 GB, free: 83.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/5.531, allocations: 6 kB / 2.378 GB, free: 83.7 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002704/5.534, allocations: 1.437 MB / 2.38 GB, free: 83.03 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003294/5.537, allocations: 2.28 MB / 2.382 GB, free: 81.75 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009027/5.538, allocations: 340.5 kB / 2.382 GB, free: 81.51 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000463/5.538, allocations: 8.672 kB / 2.382 GB, free: 81.51 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/5.54, allocations: 80.94 kB / 2.382 GB, free: 81.5 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/5.54, allocations: 49.31 kB / 2.382 GB, free: 81.5 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.234e-05/5.54, allocations: 35.58 kB / 2.382 GB, free: 81.49 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001608/5.541, allocations: 0.9106 MB / 2.383 GB, free: 81.11 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005705/5.547, allocations: 1.246 MB / 2.384 GB, free: 80.6 MB / 0.7138 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 (76): * Single equations (assignments): 67 * 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.002495/5.55, allocations: 1.182 MB / 2.386 GB, free: 80.28 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002344/5.552, allocations: 1.283 MB / 2.387 GB, free: 79.79 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/5.552, allocations: 0 / 2.387 GB, free: 79.79 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0007722/5.553, allocations: 458 kB / 2.387 GB, free: 79.57 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003185/5.556, allocations: 0.6013 MB / 2.388 GB, free: 79.43 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005922/5.562, allocations: 2.331 MB / 2.39 GB, free: 78.56 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001615/5.564, allocations: 1.569 MB / 2.392 GB, free: 77.79 MB / 0.7138 GB Notification: Performance of SimCode: time 5.81e-07/5.564, allocations: 0 / 2.392 GB, free: 77.79 MB / 0.7138 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)