Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_8_0_0_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_8_0_0_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",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 8.0.0/package.mo): time 2.325/2.325, allocations: 284.8 MB / 292.1 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001611/0.001611, allocations: 173.3 kB / 360.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.1 MB / 0.6187 GB, free: 13.24 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001281/0.001279, allocations: 89.16 kB / 0.7317 GB, free: 45.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2714/0.2727, allocations: 121.4 MB / 0.8502 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6267/0.8995, allocations: 115.3 MB / 0.9628 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.93, allocations: 442.2 MB / 1.395 GB, free: 126.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/1.93, allocations: 91.33 kB / 1.395 GB, free: 126.5 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 3.245/5.175, allocations: 0.6953 GB / 2.09 GB, free: 179.9 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/5.175, allocations: 7.281 kB / 2.09 GB, free: 179.9 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/5.178, allocations: 373.5 kB / 2.09 GB, free: 179.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03181/5.21, allocations: 8.583 MB / 2.099 GB, free: 179.2 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/5.21, allocations: 30.69 kB / 2.099 GB, free: 179.2 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003475/5.21, allocations: 52.94 kB / 2.099 GB, free: 179.2 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002334/5.213, allocations: 0.6262 MB / 2.099 GB, free: 179.2 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002447/5.215, allocations: 0.8456 MB / 2.1 GB, free: 179 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/5.215, allocations: 2.812 kB / 2.1 GB, free: 179 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/5.216, allocations: 2.812 kB / 2.1 GB, free: 179 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.016e-05/5.216, allocations: 23.33 kB / 2.1 GB, free: 179 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/5.227, allocations: 4.782 MB / 2.105 GB, free: 176.4 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/5.228, allocations: 444 kB / 2.105 GB, free: 176.2 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006558/5.229, allocations: 242.2 kB / 2.106 GB, free: 176.1 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003933/5.233, allocations: 1.65 MB / 2.107 GB, free: 174.8 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008069/5.234, allocations: 362.4 kB / 2.108 GB, free: 174.6 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=47): time 5.29e-06/5.234, allocations: 0 / 2.108 GB, free: 174.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=47): time 0.003189/5.237, allocations: 0.6855 MB / 2.108 GB, free: 174.3 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/5.237, allocations: 110.5 kB / 2.108 GB, free: 174.2 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/5.24, allocations: 0.974 MB / 2.109 GB, free: 173.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002482/5.24, allocations: 27.86 kB / 2.109 GB, free: 173.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005403/5.241, allocations: 434.5 kB / 2.11 GB, free: 173.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/5.241, allocations: 152.2 kB / 2.11 GB, free: 173.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/5.241, allocations: 0 / 2.11 GB, free: 173.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.008e-05/5.241, allocations: 337.4 kB / 2.11 GB, free: 173 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/5.242, allocations: 210.4 kB / 2.11 GB, free: 172.9 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007566/5.242, allocations: 489.2 kB / 2.111 GB, free: 172.5 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/5.244, allocations: 357.3 kB / 2.111 GB, free: 172.4 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/5.244, allocations: 0 / 2.111 GB, free: 172.4 MB / 0.9323 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003255/5.247, allocations: 0.8728 MB / 2.112 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000612/5.248, allocations: 2.739 MB / 2.115 GB, free: 169.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/5.248, allocations: 11.23 kB / 2.115 GB, free: 169.2 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004657/5.249, allocations: 73.58 kB / 2.115 GB, free: 169.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/5.25, allocations: 161.5 kB / 2.115 GB, free: 169.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009684/5.251, allocations: 1.142 MB / 2.116 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/5.253, allocations: 105 kB / 2.116 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/5.253, allocations: 47.53 kB / 2.116 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/5.253, allocations: 4.219 kB / 2.116 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00283/5.256, allocations: 0.6739 MB / 2.117 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/5.256, allocations: 7.844 kB / 2.117 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/5.256, allocations: 75.05 kB / 2.117 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/5.258, allocations: 154.6 kB / 2.117 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/5.259, allocations: 1.164 MB / 2.118 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/5.261, allocations: 97.52 kB / 2.118 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/5.261, allocations: 36.22 kB / 2.118 GB, free: 166.8 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003771/5.261, allocations: 167.2 kB / 2.119 GB, free: 166.6 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/5.261, allocations: 128.6 kB / 2.119 GB, free: 166.5 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/5.265, allocations: 0.8884 MB / 2.12 GB, free: 166.3 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/5.265, allocations: 12.97 kB / 2.12 GB, free: 166.3 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.006e-06/5.265, allocations: 0 / 2.12 GB, free: 166.3 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/5.265, allocations: 3.422 kB / 2.12 GB, free: 166.3 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005284/5.27, allocations: 1.83 MB / 2.121 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/5.27, allocations: 7 kB / 2.121 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009672/5.271, allocations: 103.6 kB / 2.121 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003236/5.272, allocations: 62.55 kB / 2.121 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-05/5.272, allocations: 23.97 kB / 2.122 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009648/5.273, allocations: 1.144 MB / 2.123 GB, free: 164.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.423e-06/5.273, allocations: 0 / 2.123 GB, free: 164.2 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002774/5.276, allocations: 0.9847 MB / 2.124 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002934/5.279, allocations: 1.437 MB / 2.125 GB, free: 162.6 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009254/5.28, allocations: 305.9 kB / 2.125 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/5.28, allocations: 10.22 kB / 2.125 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/5.282, allocations: 82.16 kB / 2.125 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/5.282, allocations: 41.41 kB / 2.125 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/5.282, allocations: 36.98 kB / 2.125 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001657/5.283, allocations: 0.7389 MB / 2.126 GB, free: 162 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.006569/5.29, allocations: 0.9956 MB / 2.127 GB, free: 161.6 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002509/5.293, allocations: 0.9715 MB / 2.128 GB, free: 161.3 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002912/5.296, allocations: 1.007 MB / 2.129 GB, free: 161 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/5.296, allocations: 2.781 kB / 2.129 GB, free: 161 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009354/5.297, allocations: 341.9 kB / 2.129 GB, free: 160.8 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004595/5.301, allocations: 0.5109 MB / 2.13 GB, free: 160.7 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006363/5.308, allocations: 1.677 MB / 2.132 GB, free: 160 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/5.31, allocations: 1.35 MB / 2.133 GB, free: 159.3 MB / 0.9323 GB Notification: Performance of SimCode: time 1.523e-06/5.31, allocations: 3.656 kB / 2.133 GB, free: 159.3 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.fmu > Buildings_8.0.0_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1)