Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",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/Buildings 10.0.0-master/package.mo): time 2.274/2.274, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 181.3 kB / 490.8 MB, free: 1.926 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.932/1.932, allocations: 221.4 MB / 0.7863 GB, free: 13.62 MB / 0.5573 GB 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: 94.8 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7954/0.7968, allocations: 149.1 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/1.17, allocations: 143 MB / 1.212 GB, free: 39.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/2.38, allocations: 421.9 MB / 1.624 GB, free: 9.539 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/2.38, allocations: 95.44 kB / 1.624 GB, free: 9.492 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 11.14/13.52, allocations: 2.808 GB / 4.432 GB, free: 76.63 MB / 1.292 GB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/13.52, allocations: 6.5 kB / 4.432 GB, free: 76.63 MB / 1.292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006315/13.53, allocations: 0.7897 MB / 4.433 GB, free: 76.25 MB / 1.292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2192/13.74, allocations: 60.93 MB / 4.493 GB, free: 60.64 MB / 1.292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005929/13.75, allocations: 130.5 kB / 4.493 GB, free: 60.64 MB / 1.292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002847/13.75, allocations: 254 kB / 4.493 GB, free: 60.63 MB / 1.292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01426/13.76, allocations: 2.535 MB / 4.495 GB, free: 59.48 MB / 1.292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/13.78, allocations: 3.625 MB / 4.499 GB, free: 57.2 MB / 1.292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004346/13.78, allocations: 15.72 kB / 4.499 GB, free: 57.2 MB / 1.292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001463/13.78, allocations: 8.812 kB / 4.499 GB, free: 57.2 MB / 1.292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002211/13.78, allocations: 125.5 kB / 4.499 GB, free: 57.18 MB / 1.292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04312/13.83, allocations: 26.04 MB / 4.524 GB, free: 30.42 MB / 1.292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/13.83, allocations: 1.087 MB / 4.526 GB, free: 29.33 MB / 1.292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002112/13.83, allocations: 1.108 MB / 4.527 GB, free: 28.23 MB / 1.292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003354/13.83, allocations: 3.932 MB / 4.53 GB, free: 23.45 MB / 1.292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.824e-05/13.83, allocations: 68.56 kB / 4.531 GB, free: 23.37 MB / 1.292 GB Notification: Performance of pre-optimization done (n=225): time 5.841e-06/13.83, allocations: 3.656 kB / 4.531 GB, free: 23.37 MB / 1.292 GB Notification: Performance of matching and sorting (n=225): time 0.01019/13.84, allocations: 2.964 MB / 4.533 GB, free: 20.4 MB / 1.292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/13.84, allocations: 73.41 kB / 4.533 GB, free: 20.32 MB / 1.292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00937/13.85, allocations: 3.316 MB / 4.537 GB, free: 17.03 MB / 1.292 GB Notification: Performance of collectPreVariables (initialization): time 0.0007408/13.85, allocations: 29.7 kB / 4.537 GB, free: 17 MB / 1.292 GB Notification: Performance of collectInitialEqns (initialization): time 0.002071/13.86, allocations: 1.699 MB / 4.538 GB, free: 15.27 MB / 1.292 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/13.86, allocations: 0.7505 MB / 4.539 GB, free: 14.5 MB / 1.292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003772/13.86, allocations: 0 / 4.539 GB, free: 14.5 MB / 1.292 GB Notification: Performance of setup shared object (initialization): time 0.0002454/13.86, allocations: 415.3 kB / 4.54 GB, free: 14.09 MB / 1.292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/13.86, allocations: 0.7395 MB / 4.54 GB, free: 13.35 MB / 1.292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002105/13.86, allocations: 1.707 MB / 4.542 GB, free: 11.2 MB / 1.292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004197/13.87, allocations: 1.418 MB / 4.543 GB, free: 9.777 MB / 1.292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/13.87, allocations: 8 kB / 4.543 GB, free: 9.77 MB / 1.292 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.01227/13.88, allocations: 3.546 MB / 4.547 GB, free: 6.219 MB / 1.292 GB Notification: Performance of prepare postOptimizeDAE: time 0.003701/13.88, allocations: 10.31 MB / 4.557 GB, free: 11.16 MB / 1.307 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.766e-05/13.88, allocations: 24 kB / 4.557 GB, free: 11.13 MB / 1.307 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/13.88, allocations: 373.9 kB / 4.557 GB, free: 10.76 MB / 1.307 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/13.89, allocations: 0.5148 MB / 4.558 GB, free: 10.24 MB / 1.307 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003094/13.89, allocations: 2.853 MB / 4.561 GB, free: 7.301 MB / 1.307 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007067/13.9, allocations: 497.1 kB / 4.561 GB, free: 6.812 MB / 1.307 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008148/13.9, allocations: 136 kB / 4.561 GB, free: 6.68 MB / 1.307 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/13.9, allocations: 6.812 kB / 4.561 GB, free: 6.676 MB / 1.307 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009751/13.91, allocations: 2.828 MB / 4.564 GB, free: 3.844 MB / 1.307 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.943e-05/13.91, allocations: 20 kB / 4.564 GB, free: 3.824 MB / 1.307 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/13.91, allocations: 393.2 kB / 4.564 GB, free: 3.43 MB / 1.307 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002292/13.91, allocations: 0.5109 MB / 4.565 GB, free: 2.918 MB / 1.307 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/13.92, allocations: 7.315 MB / 4.572 GB, free: 11.18 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008143/13.93, allocations: 453.8 kB / 4.572 GB, free: 10.73 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/13.93, allocations: 124 kB / 4.572 GB, free: 10.61 MB / 1.323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 287 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 14,1 11,1 14,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.001796/13.93, allocations: 184.5 kB / 4.573 GB, free: 10.43 MB / 1.323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002725/13.94, allocations: 0.5047 MB / 4.573 GB, free: 9.918 MB / 1.323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/13.95, allocations: 4.158 MB / 4.577 GB, free: 5.719 MB / 1.323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.523e-05/13.95, allocations: 35.97 kB / 4.577 GB, free: 5.684 MB / 1.323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/13.95, allocations: 0 / 4.577 GB, free: 5.684 MB / 1.323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007247/13.96, allocations: 2.737 MB / 4.58 GB, free: 2.906 MB / 1.323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9719/14.93, allocations: 8.169 MB / 4.588 GB, free: 200 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/14.93, allocations: 0 / 4.588 GB, free: 200 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/14.93, allocations: 390.1 kB / 4.588 GB, free: 200 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000478/14.93, allocations: 232.3 kB / 4.588 GB, free: 200 MB / 1.323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001465/14.93, allocations: 37.14 kB / 4.589 GB, free: 200 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/14.93, allocations: 2.528 MB / 4.591 GB, free: 198 MB / 1.323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/14.93, allocations: 3.812 kB / 4.591 GB, free: 198 MB / 1.323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01022/14.94, allocations: 4.85 MB / 4.596 GB, free: 197.5 MB / 1.323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01287/14.96, allocations: 6.949 MB / 4.603 GB, free: 196.6 MB / 1.323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004791/14.96, allocations: 0.9781 MB / 4.603 GB, free: 196.3 MB / 1.323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002442/14.96, allocations: 4.625 kB / 4.603 GB, free: 196.3 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006263/14.97, allocations: 397.6 kB / 4.604 GB, free: 196.3 MB / 1.323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005015/14.97, allocations: 139.5 kB / 4.604 GB, free: 196.2 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006158/14.97, allocations: 116.9 kB / 4.604 GB, free: 196.2 MB / 1.323 GB Notification: Performance of sort global known variables: time 0.007933/14.98, allocations: 2.45 MB / 4.606 GB, free: 196.1 MB / 1.323 GB Notification: Performance of remove unused functions: time 0.02598/15, allocations: 4.777 MB / 4.611 GB, free: 195.9 MB / 1.323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009138/15.01, allocations: 3.433 MB / 4.615 GB, free: 194.7 MB / 1.323 GB Notification: Performance of simCode: created initialization part: time 0.0108/15.02, allocations: 4.245 MB / 4.619 GB, free: 194.2 MB / 1.323 GB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/15.02, allocations: 3.938 kB / 4.619 GB, free: 194.2 MB / 1.323 GB Notification: Performance of simCode: created simulation system equations: time 0.002704/15.03, allocations: 1.252 MB / 4.62 GB, free: 194.2 MB / 1.323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0171/15.04, allocations: 2.503 MB / 4.622 GB, free: 194.2 MB / 1.323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02665/15.07, allocations: 7.352 MB / 4.63 GB, free: 192.3 MB / 1.323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008156/15.08, allocations: 3.481 MB / 4.633 GB, free: 191.5 MB / 1.323 GB Notification: Performance of SimCode: time 1.603e-06/15.08, allocations: 0 / 4.633 GB, free: 191.5 MB / 1.323 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)