Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.conf.json 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/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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,fileNamePrefix="BuildSysPro_BuildSysPro_BuildingStock_RnCm_Examples_R3C2_PIControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,fileNamePrefix="BuildSysPro_BuildSysPro_BuildingStock_RnCm_Examples_R3C2_PIControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009714/0.0009716, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009091/0.0009091, allocations: 193.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8644/0.8644, allocations: 143 MB / 433.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.131, allocations: 82.04 MB / 0.5944 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.004192/0.1352, allocations: 3.213 MB / 0.5975 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003418/0.1386, allocations: 2.558 MB / 0.6 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002743/0.1389, allocations: 7.938 kB / 0.6 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.1393, allocations: 107.1 kB / 0.6001 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000456/0.1398, allocations: 194.6 kB / 0.6003 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009398/0.1408, allocations: 486.7 kB / 0.6008 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006884/0.1415, allocations: 0.8382 MB / 0.6016 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003856/0.1419, allocations: 329.5 kB / 0.6019 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.1422, allocations: 335 kB / 0.6022 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004323/0.1426, allocations: 398.6 kB / 0.6026 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1427, allocations: 91.94 kB / 0.6027 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004645/0.1432, allocations: 359.6 kB / 0.603 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.1434, allocations: 239.3 kB / 0.6033 GB, free: 360 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.2169/0.3603, allocations: 394.3 kB / 0.6036 GB, free: 38.19 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.3616, allocations: 1.119 MB / 0.6047 GB, free: 38.18 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3616, allocations: 5.5 kB / 0.6047 GB, free: 38.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.344e-06/0.3616, allocations: 3.234 kB / 0.6047 GB, free: 38.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.678e-06/0.3616, allocations: 0 / 0.6047 GB, free: 38.18 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.00153/0.3632, allocations: 1.111 MB / 0.6058 GB, free: 37.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3632, allocations: 8.094 kB / 0.6058 GB, free: 37.49 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.3633, allocations: 112 kB / 0.6059 GB, free: 37.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.3636, allocations: 87.09 kB / 0.606 GB, free: 37.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.364, allocations: 493.1 kB / 0.6065 GB, free: 37.15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.3641, allocations: 96.98 kB / 0.6066 GB, free: 37.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.334e-05/0.3642, allocations: 56.47 kB / 0.6066 GB, free: 37.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.3655, allocations: 0.7961 MB / 0.6074 GB, free: 37.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3655, allocations: 1.5 kB / 0.6074 GB, free: 37.02 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.3656, allocations: 27.27 kB / 0.6074 GB, free: 37.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3656, allocations: 16.88 kB / 0.6075 GB, free: 37.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3671, allocations: 0.7944 MB / 0.6082 GB, free: 37.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.37, allocations: 2.748 MB / 0.6109 GB, free: 35.85 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.3713, allocations: 0.7126 MB / 0.6116 GB, free: 35.81 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000749/0.3721, allocations: 441.4 kB / 0.612 GB, free: 35.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004285/0.3725, allocations: 0.5141 MB / 0.6125 GB, free: 35.24 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3726, allocations: 41.88 kB / 0.6126 GB, free: 35.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 2.565e-06/0.3726, allocations: 2.656 kB / 0.6126 GB, free: 35.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.007596/0.3802, allocations: 2.261 MB / 0.6148 GB, free: 34.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.3802, allocations: 140.1 kB / 0.6149 GB, free: 34.78 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.3807, allocations: 473.9 kB / 0.6154 GB, free: 34.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.3808, allocations: 34.92 kB / 0.6154 GB, free: 34.63 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3809, allocations: 310.8 kB / 0.6157 GB, free: 34.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.381, allocations: 207.9 kB / 0.6159 GB, free: 34.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.3812, allocations: 109.9 kB / 0.616 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.46e-05/0.3813, allocations: 366.3 kB / 0.6164 GB, free: 33.85 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.3819, allocations: 306.8 kB / 0.6167 GB, free: 33.74 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.3826, allocations: 398 kB / 0.617 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003925/0.3865, allocations: 1.848 MB / 0.6188 GB, free: 32.78 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3865, allocations: 0 / 0.6188 GB, free: 32.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003695/0.3902, allocations: 1.358 MB / 0.6202 GB, free: 32.35 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.3903, allocations: 64.38 kB / 0.6202 GB, free: 32.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003528/0.3938, allocations: 1.3 MB / 0.6215 GB, free: 31.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000756/0.3946, allocations: 330.4 kB / 0.6218 GB, free: 31.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/0.395, allocations: 119.5 kB / 0.6219 GB, free: 31.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006768/0.4018, allocations: 3.089 MB / 0.6249 GB, free: 30.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.4024, allocations: 64.78 kB / 0.625 GB, free: 30.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.4025, allocations: 28.78 kB / 0.625 GB, free: 30.11 MB / 0.4981 GB Warning: Assuming fixed start value for the following 3 variables: R3C2_1.Tint.T:VARIABLE(min = 0.0 start = 288.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of the element" type: Real R3C2_1.Ts.T:VARIABLE(min = 0.0 start = 288.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of the element" type: Real PI1.x:VARIABLE(start = PI1.x_start fixed = true ) "State of block" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 6 (meteofile.longitude,meteofile.latitude,meteofile.CoupleFlux,meteofile.d0,meteofile.h0,meteofile.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.4029, allocations: 286.4 kB / 0.6253 GB, free: 29.9 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.403, allocations: 57.17 kB / 0.6254 GB, free: 29.88 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003783/0.4068, allocations: 1.359 MB / 0.6267 GB, free: 29.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.4068, allocations: 4.875 kB / 0.6267 GB, free: 29.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4068, allocations: 7.609 kB / 0.6267 GB, free: 29.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.4068, allocations: 3.188 kB / 0.6267 GB, free: 29.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006991/0.4075, allocations: 0.7496 MB / 0.6274 GB, free: 29.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003595/0.4111, allocations: 1.279 MB / 0.6287 GB, free: 28.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.4115, allocations: 92.5 kB / 0.6288 GB, free: 28.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007033/0.4122, allocations: 323.8 kB / 0.6291 GB, free: 28.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/0.4123, allocations: 20.75 kB / 0.6291 GB, free: 28.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006696/0.419, allocations: 3.084 MB / 0.6321 GB, free: 26.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.419, allocations: 0 / 0.6321 GB, free: 26.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/0.4237, allocations: 1.903 MB / 0.634 GB, free: 26.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.424, allocations: 215.8 kB / 0.6342 GB, free: 26.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.553e-05/0.4241, allocations: 15.25 kB / 0.6342 GB, free: 26.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003769/0.4244, allocations: 30.75 kB / 0.6342 GB, free: 26.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.4246, allocations: 65.42 kB / 0.6343 GB, free: 26.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/0.4247, allocations: 22.34 kB / 0.6343 GB, free: 26.03 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003384/0.425, allocations: 340.7 kB / 0.6346 GB, free: 25.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.425, allocations: 0 / 0.6346 GB, free: 25.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006742/0.4257, allocations: 229.4 kB / 0.6348 GB, free: 25.81 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (R3C2_1.Tint.T,R3C2_1.Ts.T,PI1.x) * Number of discrete variables: 6 (meteofile.t0,meteofile.h0,meteofile.d0,meteofile.CoupleFlux,meteofile.latitude,meteofile.longitude) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005919/0.4316, allocations: 2.868 MB / 0.6376 GB, free: 24.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002552/0.4342, allocations: 1.246 MB / 0.6389 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4342, allocations: 0 / 0.6389 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4356, allocations: 0.7038 MB / 0.6395 GB, free: 23.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.4361, allocations: 86.38 kB / 0.6396 GB, free: 23.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.449, allocations: 6.914 MB / 0.6464 GB, free: 20.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.4494, allocations: 0.9363 MB / 0.6473 GB, free: 19.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003905/0.4498, allocations: 123.9 kB / 0.6474 GB, free: 19.44 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.4501, allocations: 238.7 kB / 0.6476 GB, free: 19.27 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.4501, allocations: 1.219 kB / 0.6476 GB, free: 19.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03688/0.487, allocations: 16.9 MB / 0.6641 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.845/10.33, allocations: 14.86 kB / 0.6642 GB, free: 15.14 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe ; mkfifo BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe >> ../files/BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildSysPro_BuildSysPro_BuildingStock_RnCm_Examples_R3C2_PIControlled.fmu > BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe 2>&1)