Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_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 7.0.3-maint.7.0.x/package.mo): time 1.245/1.245, allocations: 249.4 MB / 256.7 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001091/0.001092, allocations: 185.2 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.089/1.089, allocations: 205.1 MB / 0.5667 GB, free: 15.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008394/0.0008395, allocations: 89.73 kB / 0.671 GB, free: 4.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3081/0.309, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.4644, allocations: 106.3 MB / 0.8847 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.477, allocations: 435.8 MB / 1.31 GB, free: 310.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/1.478, allocations: 96.25 kB / 1.31 GB, free: 310.5 MB / 0.8698 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 1.806/3.284, allocations: 0.6764 GB / 1.987 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/3.284, allocations: 7.281 kB / 1.987 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/3.285, allocations: 377.8 kB / 1.987 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01711/3.302, allocations: 8.418 MB / 1.995 GB, free: 156 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/3.302, allocations: 29.59 kB / 1.995 GB, free: 156 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/3.302, allocations: 50.09 kB / 1.995 GB, free: 156 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001182/3.304, allocations: 0.6239 MB / 1.996 GB, free: 156 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/3.305, allocations: 0.853 MB / 1.997 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/3.305, allocations: 8.625 kB / 1.997 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.566e-05/3.305, allocations: 0 / 1.997 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/3.305, allocations: 19.91 kB / 1.997 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005803/3.311, allocations: 4.708 MB / 2.001 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/3.311, allocations: 436.2 kB / 2.002 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/3.312, allocations: 253.4 kB / 2.002 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001992/3.314, allocations: 1.646 MB / 2.004 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/3.314, allocations: 359.1 kB / 2.004 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 2.134e-06/3.314, allocations: 0 / 2.004 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001653/3.316, allocations: 0.678 MB / 2.005 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/3.316, allocations: 116.2 kB / 2.005 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/3.317, allocations: 0.967 MB / 2.006 GB, free: 152 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.706e-05/3.317, allocations: 31.48 kB / 2.006 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000269/3.317, allocations: 433.5 kB / 2.006 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/3.317, allocations: 158 kB / 2.006 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/3.317, allocations: 0 / 2.006 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.763e-05/3.318, allocations: 328 kB / 2.007 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/3.318, allocations: 209.8 kB / 2.007 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/3.318, allocations: 486.8 kB / 2.007 GB, free: 151 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000941/3.319, allocations: 361.3 kB / 2.008 GB, free: 151 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/3.319, allocations: 3.906 kB / 2.008 GB, free: 151 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001654/3.321, allocations: 0.8744 MB / 2.009 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004439/3.321, allocations: 2.736 MB / 2.011 GB, free: 148 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/3.321, allocations: 7.531 kB / 2.011 GB, free: 148 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/3.322, allocations: 76.72 kB / 2.011 GB, free: 148 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006418/3.322, allocations: 157.8 kB / 2.011 GB, free: 148 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000579/3.323, allocations: 1.148 MB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008851/3.324, allocations: 106.8 kB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/3.324, allocations: 44.61 kB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.184e-06/3.324, allocations: 3.906 kB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001452/3.325, allocations: 0.6788 MB / 2.013 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/3.325, allocations: 8.281 kB / 2.013 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/3.325, allocations: 81.44 kB / 2.013 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/3.326, allocations: 152 kB / 2.014 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005639/3.327, allocations: 1.158 MB / 2.015 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007527/3.327, allocations: 97.22 kB / 2.015 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/3.327, allocations: 40.73 kB / 2.015 GB, free: 145.9 MB / 0.8698 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.0002081/3.328, allocations: 167.7 kB / 2.015 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/3.328, allocations: 128.5 kB / 2.015 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/3.33, allocations: 0.8837 MB / 2.016 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/3.33, allocations: 9.875 kB / 2.016 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/3.33, allocations: 2 kB / 2.016 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/3.33, allocations: 3.375 kB / 2.016 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/3.332, allocations: 1.832 MB / 2.018 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/3.333, allocations: 3.938 kB / 2.018 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/3.333, allocations: 102.2 kB / 2.018 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/3.333, allocations: 71.02 kB / 2.018 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/3.333, allocations: 17.17 kB / 2.018 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005722/3.334, allocations: 1.142 MB / 2.019 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/3.334, allocations: 0 / 2.019 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001327/3.335, allocations: 0.9871 MB / 2.02 GB, free: 143.6 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001644/3.337, allocations: 1.449 MB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006081/3.337, allocations: 303.2 kB / 2.022 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/3.338, allocations: 8.922 kB / 2.022 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009164/3.339, allocations: 77.03 kB / 2.022 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/3.339, allocations: 45.92 kB / 2.022 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.02e-05/3.339, allocations: 32.83 kB / 2.022 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001291/3.34, allocations: 0.74 MB / 2.023 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004082/3.344, allocations: 0.9711 MB / 2.024 GB, free: 142.4 MB / 0.8698 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.001897/3.346, allocations: 0.9725 MB / 2.025 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001883/3.348, allocations: 0.994 MB / 2.026 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/3.348, allocations: 3.719 kB / 2.026 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005657/3.349, allocations: 347.1 kB / 2.026 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/3.351, allocations: 0.5156 MB / 2.026 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003729/3.355, allocations: 1.684 MB / 2.028 GB, free: 141.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/3.356, allocations: 1.349 MB / 2.029 GB, free: 140.9 MB / 0.8698 GB Notification: Performance of SimCode: time 9.62e-07/3.356, allocations: 3.906 kB / 2.029 GB, free: 140.9 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.fmu > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1)