Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.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.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6974/0.6974, allocations: 141.8 MB / 149.1 MB, free: 13.52 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.001122/0.001122, allocations: 183.5 kB / 181.9 MB, free: 10.18 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.4 MB / 436 MB, free: 2.707 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.0009157/0.0009157, allocations: 94.66 kB / 0.507 GB, free: 17.78 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001798/0.001798, allocations: 279.6 kB / 0.5884 GB, free: 4.145 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.396/0.3978, allocations: 89.63 MB / 0.676 GB, free: 136.7 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.5344, allocations: 82.78 MB / 0.7568 GB, free: 83.74 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5926/1.127, allocations: 380.5 MB / 1.128 GB, free: 14.74 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/1.127, allocations: 91.92 kB / 1.129 GB, free: 14.7 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: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 9.534/10.66, allocations: 2.798 GB / 3.927 GB, free: 33.77 MB / 0.8544 GB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/10.66, allocations: 10.38 kB / 3.927 GB, free: 33.77 MB / 0.8544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005513/10.67, allocations: 0.7799 MB / 3.928 GB, free: 33.4 MB / 0.8544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.177/10.84, allocations: 60.89 MB / 3.987 GB, free: 29.98 MB / 0.8544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/10.84, allocations: 132.6 kB / 3.987 GB, free: 29.98 MB / 0.8544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001688/10.85, allocations: 257.6 kB / 3.988 GB, free: 29.98 MB / 0.8544 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00918/10.85, allocations: 2.542 MB / 3.99 GB, free: 29.95 MB / 0.8544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01235/10.87, allocations: 3.616 MB / 3.994 GB, free: 29.17 MB / 0.8544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003014/10.87, allocations: 14.12 kB / 3.994 GB, free: 29.16 MB / 0.8544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001345/10.87, allocations: 9.344 kB / 3.994 GB, free: 29.16 MB / 0.8544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/10.87, allocations: 117.4 kB / 3.994 GB, free: 29.16 MB / 0.8544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04118/10.91, allocations: 26.04 MB / 4.019 GB, free: 12.81 MB / 0.8544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/10.91, allocations: 1.098 MB / 4.02 GB, free: 12.79 MB / 0.8544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002692/10.92, allocations: 1.098 MB / 4.021 GB, free: 12.77 MB / 0.8544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003102/10.92, allocations: 3.934 MB / 4.025 GB, free: 8.367 MB / 0.8544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000111/10.92, allocations: 68.98 kB / 4.025 GB, free: 8.32 MB / 0.8544 GB Notification: Performance of pre-optimization done (n=225): time 9.297e-06/10.92, allocations: 0.9062 kB / 4.025 GB, free: 8.32 MB / 0.8544 GB Notification: Performance of matching and sorting (n=225): time 0.01154/10.93, allocations: 2.974 MB / 4.028 GB, free: 7.898 MB / 0.8544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/10.93, allocations: 73.47 kB / 4.028 GB, free: 7.836 MB / 0.8544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00894/10.94, allocations: 3.292 MB / 4.031 GB, free: 7.531 MB / 0.8544 GB Notification: Performance of collectPreVariables (initialization): time 0.0007182/10.94, allocations: 32.7 kB / 4.031 GB, free: 7.5 MB / 0.8544 GB Notification: Performance of collectInitialEqns (initialization): time 0.002115/10.94, allocations: 1.706 MB / 4.033 GB, free: 6.609 MB / 0.8544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001726/10.94, allocations: 0.7509 MB / 4.034 GB, free: 6.102 MB / 0.8544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000373/10.94, allocations: 0 / 4.034 GB, free: 6.102 MB / 0.8544 GB Notification: Performance of setup shared object (initialization): time 0.0002335/10.94, allocations: 408.3 kB / 4.034 GB, free: 5.797 MB / 0.8544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/10.95, allocations: 0.739 MB / 4.035 GB, free: 5.789 MB / 0.8544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/10.95, allocations: 1.709 MB / 4.037 GB, free: 4.621 MB / 0.8544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004547/10.95, allocations: 1.423 MB / 4.038 GB, free: 4.527 MB / 0.8544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-05/10.95, allocations: 5.875 kB / 4.038 GB, free: 4.527 MB / 0.8544 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.01161/10.96, allocations: 3.547 MB / 4.041 GB, free: 3.996 MB / 0.8544 GB Notification: Performance of prepare postOptimizeDAE: time 0.004828/10.97, allocations: 10.29 MB / 4.051 GB, free: 9.148 MB / 0.87 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.498e-05/10.97, allocations: 24.61 kB / 4.051 GB, free: 9.148 MB / 0.87 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/10.97, allocations: 382.9 kB / 4.052 GB, free: 9.109 MB / 0.87 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/10.97, allocations: 0.5069 MB / 4.052 GB, free: 9.074 MB / 0.87 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/10.98, allocations: 2.852 MB / 4.055 GB, free: 6.949 MB / 0.87 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006737/10.98, allocations: 0.4945 MB / 4.056 GB, free: 6.785 MB / 0.87 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007899/10.98, allocations: 131.7 kB / 4.056 GB, free: 6.785 MB / 0.87 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/10.98, allocations: 4.406 kB / 4.056 GB, free: 6.785 MB / 0.87 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00934/10.99, allocations: 2.831 MB / 4.058 GB, free: 6.559 MB / 0.87 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.439e-05/10.99, allocations: 24.41 kB / 4.059 GB, free: 6.559 MB / 0.87 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/10.99, allocations: 394.2 kB / 4.059 GB, free: 6.516 MB / 0.87 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/11, allocations: 0.5109 MB / 4.059 GB, free: 6.48 MB / 0.87 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/11.01, allocations: 7.32 MB / 4.067 GB, free: 1.246 MB / 0.87 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006834/11.01, allocations: 465.9 kB / 4.067 GB, free: 1.113 MB / 0.87 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/11.02, allocations: 125.9 kB / 4.067 GB, free: 1.113 MB / 0.87 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.001807/11.02, allocations: 186.1 kB / 4.067 GB, free: 0.9531 MB / 0.87 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002794/11.02, allocations: 0.5004 MB / 4.068 GB, free: 0.6914 MB / 0.87 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/11.03, allocations: 4.162 MB / 4.072 GB, free: 15.83 MB / 0.8857 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.109e-05/11.03, allocations: 38.2 kB / 4.072 GB, free: 15.82 MB / 0.8857 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/11.03, allocations: 1.188 kB / 4.072 GB, free: 15.82 MB / 0.8857 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006606/11.04, allocations: 2.745 MB / 4.075 GB, free: 14.86 MB / 0.8857 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02612/11.07, allocations: 8.165 MB / 4.083 GB, free: 11.03 MB / 0.8857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/11.07, allocations: 0 / 4.083 GB, free: 11.03 MB / 0.8857 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/11.07, allocations: 386.9 kB / 4.083 GB, free: 10.99 MB / 0.8857 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006573/11.07, allocations: 228.4 kB / 4.083 GB, free: 10.91 MB / 0.8857 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003271/11.07, allocations: 35.44 kB / 4.083 GB, free: 10.9 MB / 0.8857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002259/11.07, allocations: 2.529 MB / 4.086 GB, free: 8.613 MB / 0.8857 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/11.07, allocations: 0.625 kB / 4.086 GB, free: 8.613 MB / 0.8857 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01298/11.08, allocations: 4.838 MB / 4.09 GB, free: 6.297 MB / 0.8857 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01426/11.1, allocations: 6.958 MB / 4.097 GB, free: 15.86 MB / 0.9013 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005597/11.1, allocations: 0.9799 MB / 4.098 GB, free: 15.02 MB / 0.9013 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002617/11.11, allocations: 6.156 kB / 4.098 GB, free: 15.01 MB / 0.9013 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005892/11.11, allocations: 394.6 kB / 4.098 GB, free: 14.73 MB / 0.9013 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/11.11, allocations: 140.3 kB / 4.099 GB, free: 14.65 MB / 0.9013 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005301/11.11, allocations: 113 kB / 4.099 GB, free: 14.56 MB / 0.9013 GB Notification: Performance of sort global known variables: time 0.007549/11.12, allocations: 2.437 MB / 4.101 GB, free: 12.38 MB / 0.9013 GB Notification: Performance of remove unused functions: time 0.02227/11.14, allocations: 4.781 MB / 4.106 GB, free: 7.648 MB / 0.9013 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.01114/11.15, allocations: 3.444 MB / 4.109 GB, free: 4.242 MB / 0.9013 GB Notification: Performance of simCode: created initialization part: time 0.01102/11.17, allocations: 4.254 MB / 4.113 GB, free: 180 kB / 0.9013 GB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/11.17, allocations: 4 kB / 4.113 GB, free: 176 kB / 0.9013 GB Notification: Performance of simCode: created simulation system equations: time 0.5358/11.7, allocations: 1.255 MB / 4.115 GB, free: 121.4 MB / 0.9013 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01366/11.72, allocations: 2.53 MB / 4.117 GB, free: 121.3 MB / 0.9013 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/11.73, allocations: 7.313 MB / 4.124 GB, free: 119.5 MB / 0.9013 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003455/11.73, allocations: 3.467 MB / 4.128 GB, free: 118.7 MB / 0.9013 GB Notification: Performance of SimCode: time 7.31e-07/11.73, allocations: 1.562 kB / 4.128 GB, free: 118.7 MB / 0.9013 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)