Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.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.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",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.688/2.688, allocations: 284.8 MB / 292.1 MB, free: 10.72 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.00163/0.00163, allocations: 177.2 kB / 360.3 MB, free: 7.512 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.914/1.914, allocations: 205.1 MB / 0.6187 GB, free: 13.18 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.001226/0.001226, allocations: 92.41 kB / 0.7317 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3118/0.313, allocations: 121.4 MB / 0.8502 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6274/0.9405, allocations: 115.2 MB / 0.9627 GB, free: 78.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.421/6.361, allocations: 2.357 GB / 3.32 GB, free: 32.42 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/6.362, allocations: 87.33 kB / 3.32 GB, free: 32.38 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 14.18/20.55, allocations: 2.844 GB / 6.164 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 7.212e-05/20.55, allocations: 9.25 kB / 6.164 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04139/20.59, allocations: 3.228 MB / 6.167 GB, free: 103 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08102/20.67, allocations: 18.39 MB / 6.185 GB, free: 84.89 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007935/20.67, allocations: 356 kB / 6.186 GB, free: 84.55 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005799/20.68, allocations: 0.6443 MB / 6.186 GB, free: 83.9 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04827/20.72, allocations: 13.13 MB / 6.199 GB, free: 70.77 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05881/20.78, allocations: 14.66 MB / 6.214 GB, free: 55.58 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008996/20.78, allocations: 31.72 kB / 6.214 GB, free: 55.55 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006326/20.79, allocations: 24 kB / 6.214 GB, free: 55.53 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005813/20.79, allocations: 0.5872 MB / 6.214 GB, free: 54.94 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1712/20.96, allocations: 62.12 MB / 6.275 GB, free: 7.418 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 1.01/21.97, allocations: 8.786 MB / 6.283 GB, free: 215.8 MB / 0.9949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02077/21.99, allocations: 5.051 MB / 6.288 GB, free: 215.7 MB / 0.9949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005303/22, allocations: 2.392 MB / 6.291 GB, free: 213.3 MB / 0.9949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01768/22.02, allocations: 5.154 MB / 6.296 GB, free: 213.1 MB / 0.9949 GB Notification: Performance of pre-optimization done (n=704): time 1.498e-05/22.02, allocations: 3.938 kB / 6.296 GB, free: 213.1 MB / 0.9949 GB Notification: Performance of matching and sorting (n=704): time 0.05703/22.07, allocations: 10.46 MB / 6.306 GB, free: 212.9 MB / 0.9949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/22.07, allocations: 359.5 kB / 6.306 GB, free: 212.5 MB / 0.9949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0299/22.1, allocations: 9.701 MB / 6.316 GB, free: 212 MB / 0.9949 GB Notification: Performance of collectPreVariables (initialization): time 0.002613/22.11, allocations: 35.95 kB / 6.316 GB, free: 212 MB / 0.9949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01319/22.12, allocations: 4.311 MB / 6.32 GB, free: 210.9 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.01368/22.13, allocations: 2.352 MB / 6.322 GB, free: 209.7 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002446/22.14, allocations: 0 / 6.322 GB, free: 209.7 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 0.001271/22.14, allocations: 0.6481 MB / 6.323 GB, free: 209.4 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01338/22.15, allocations: 4.124 MB / 6.327 GB, free: 209.3 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01513/22.17, allocations: 6.342 MB / 6.333 GB, free: 206.8 MB / 0.9949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07674/22.24, allocations: 8.228 MB / 6.341 GB, free: 206.7 MB / 0.9949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/22.24, allocations: 19.22 kB / 6.341 GB, free: 206.7 MB / 0.9949 GB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.09396/22.34, allocations: 14.33 MB / 6.355 GB, free: 206 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 0.008067/22.34, allocations: 35.44 MB / 6.39 GB, free: 169.1 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004939/22.34, allocations: 64.62 kB / 6.39 GB, free: 169.1 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/22.35, allocations: 204.5 kB / 6.39 GB, free: 169.1 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0262/22.37, allocations: 2.355 MB / 6.392 GB, free: 169.1 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003183/22.38, allocations: 1.612 MB / 6.394 GB, free: 167.9 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02503/22.4, allocations: 1.266 MB / 6.395 GB, free: 167.5 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003316/22.4, allocations: 425.7 kB / 6.396 GB, free: 167.5 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/22.4, allocations: 3.875 kB / 6.396 GB, free: 167.5 MB / 0.9949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08832/22.49, allocations: 13.3 MB / 6.409 GB, free: 167.3 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002596/22.49, allocations: 65.94 kB / 6.409 GB, free: 167.3 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/22.49, allocations: 198.7 kB / 6.409 GB, free: 167.3 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02547/22.52, allocations: 2.354 MB / 6.411 GB, free: 167.3 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004519/22.52, allocations: 1.611 MB / 6.413 GB, free: 166.1 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02622/22.55, allocations: 1.099 MB / 6.414 GB, free: 165.7 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004476/22.56, allocations: 428.6 kB / 6.414 GB, free: 165.7 MB / 0.9949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 293 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1095): * Single equations (assignments): 1094 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.008255/22.56, allocations: 336.9 kB / 6.415 GB, free: 165.6 MB / 0.9949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007472/22.57, allocations: 1.008 MB / 6.415 GB, free: 165 MB / 0.9949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06636/22.64, allocations: 12.24 MB / 6.427 GB, free: 164.7 MB / 0.9949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.103e-05/22.64, allocations: 75.95 kB / 6.428 GB, free: 164.7 MB / 0.9949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/22.64, allocations: 0 / 6.428 GB, free: 164.7 MB / 0.9949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05655/22.69, allocations: 9.912 MB / 6.437 GB, free: 164.1 MB / 0.9949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1507/22.85, allocations: 25.57 MB / 6.462 GB, free: 162.4 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001702/22.85, allocations: 10.62 kB / 6.462 GB, free: 162.4 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0285/22.87, allocations: 1.694 MB / 6.464 GB, free: 162.4 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/22.88, allocations: 117.1 kB / 6.464 GB, free: 162.4 MB / 0.9949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00291/22.88, allocations: 166.2 kB / 6.464 GB, free: 162.4 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/22.88, allocations: 1.521 MB / 6.466 GB, free: 161.2 MB / 0.9949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.367e-05/22.88, allocations: 18.72 kB / 6.466 GB, free: 161.2 MB / 0.9949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09184/22.97, allocations: 19.59 MB / 6.485 GB, free: 156.5 MB / 0.9949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09766/23.07, allocations: 25.94 MB / 6.51 GB, free: 151.4 MB / 0.9949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01319/23.09, allocations: 2.956 MB / 6.513 GB, free: 150.6 MB / 0.9949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005956/23.09, allocations: 52.92 kB / 6.513 GB, free: 150.6 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0267/23.12, allocations: 0.677 MB / 6.514 GB, free: 150.6 MB / 0.9949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003325/23.12, allocations: 400.1 kB / 6.514 GB, free: 150.6 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00306/23.12, allocations: 380.5 kB / 6.514 GB, free: 150.6 MB / 0.9949 GB Notification: Performance of sort global known variables: time 0.02172/23.15, allocations: 7.434 MB / 6.522 GB, free: 150.3 MB / 0.9949 GB Notification: Performance of remove unused functions: time 0.04237/23.19, allocations: 7.338 MB / 6.529 GB, free: 149.2 MB / 0.9949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 40 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,solCol1.vol[1].dynBal.U,solCol1.vol[2].dynBal.U,solCol1.vol[3].dynBal.U,solCol1.vol[4].dynBal.U,solCol1.vol[5].dynBal.U,solCol1.vol[6].dynBal.U,solCol1.vol[7].dynBal.U,solCol1.vol[8].dynBal.U,solCol1.vol[9].dynBal.U,solCol1.vol[10].dynBal.U,solCol1.vol[11].dynBal.U,solCol1.vol[12].dynBal.U,solCol1.vol[13].dynBal.U,solCol1.vol[14].dynBal.U,solCol1.vol[15].dynBal.U,solCol1.vol[16].dynBal.U,solCol1.vol[17].dynBal.U,solCol1.vol[18].dynBal.U,solCol1.vol[19].dynBal.U,solCol1.vol[20].dynBal.U,solCol1.vol[21].dynBal.U,solCol1.vol[22].dynBal.U,solCol1.vol[23].dynBal.U,solCol1.vol[24].dynBal.U,solCol1.vol[25].dynBal.U,solCol1.vol[26].dynBal.U,solCol1.vol[27].dynBal.U,TOut1.T,TIn1.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (729): * Single equations (assignments): 716 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.007785/23.2, allocations: 2.03 MB / 6.531 GB, free: 148.8 MB / 0.9949 GB Notification: Performance of simCode: created initialization part: time 0.0646/23.26, allocations: 15.96 MB / 6.546 GB, free: 144.4 MB / 0.9949 GB Notification: Performance of simCode: created event and clocks part: time 3.776e-05/23.26, allocations: 16.3 kB / 6.546 GB, free: 144.4 MB / 0.9949 GB Notification: Performance of simCode: created simulation system equations: time 0.01619/23.28, allocations: 4.567 MB / 6.551 GB, free: 142.7 MB / 0.9949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07739/23.35, allocations: 5.583 MB / 6.556 GB, free: 139.8 MB / 0.9949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.136/23.49, allocations: 25.44 MB / 6.581 GB, free: 117.9 MB / 0.9949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04461/23.54, allocations: 9.975 MB / 6.591 GB, free: 110.5 MB / 0.9949 GB Notification: Performance of SimCode: time 2.224e-06/23.54, allocations: 4 kB / 6.591 GB, free: 110.5 MB / 0.9949 GB (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1)