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.006328/0.006328, allocations: 99.83 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.8462/0.8462, allocations: 143.1 MB / 433.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 68.11 kB / 0.5949 GB, free: 13.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1333, allocations: 82.03 MB / 0.675 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.004292/0.1376, allocations: 3.23 MB / 0.6782 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003627/0.1413, allocations: 2.566 MB / 0.6807 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.1416, allocations: 11.94 kB / 0.6807 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.142, allocations: 95.09 kB / 0.6808 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005412/0.1425, allocations: 198.6 kB / 0.681 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1436, allocations: 486.8 kB / 0.6815 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00074/0.1443, allocations: 0.8576 MB / 0.6823 GB, free: 3.633 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004176/0.1448, allocations: 329.5 kB / 0.6826 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003447/0.1451, allocations: 343 kB / 0.6829 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.1456, allocations: 390.6 kB / 0.6833 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.1457, allocations: 88 kB / 0.6834 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004776/0.1462, allocations: 367.6 kB / 0.6837 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.1464, allocations: 235.4 kB / 0.684 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003244/0.1467, allocations: 397.9 kB / 0.6843 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.1478, allocations: 1.148 MB / 0.6855 GB, free: 372 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1478, allocations: 0 / 0.6855 GB, free: 372 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1478, allocations: 0 / 0.6855 GB, free: 372 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.1478, allocations: 4 kB / 0.6855 GB, free: 368 kB / 0.5137 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.001802/0.1496, allocations: 1.144 MB / 0.6866 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.1497, allocations: 8.031 kB / 0.6866 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.1498, allocations: 110.7 kB / 0.6867 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002303/0.15, allocations: 92.42 kB / 0.6868 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006304/0.1507, allocations: 497.6 kB / 0.6873 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.1508, allocations: 91 kB / 0.6873 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1509, allocations: 63.95 kB / 0.6874 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.1524, allocations: 0.7978 MB / 0.6882 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1525, allocations: 4 kB / 0.6882 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.1525, allocations: 24 kB / 0.6882 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.1526, allocations: 12 kB / 0.6882 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.1544, allocations: 0.7975 MB / 0.689 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003641/0.158, allocations: 2.718 MB / 0.6917 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.1596, allocations: 0.7192 MB / 0.6924 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009381/0.1605, allocations: 450 kB / 0.6928 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005423/0.1611, allocations: 0.5156 MB / 0.6933 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1611, allocations: 39 kB / 0.6933 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=62): time 2.074e-06/0.1611, allocations: 0 / 0.6933 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of matching and sorting (n=62): time 0.008844/0.17, allocations: 2.269 MB / 0.6955 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.1701, allocations: 140.9 kB / 0.6957 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004993/0.1706, allocations: 465.9 kB / 0.6961 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.1706, allocations: 41.69 kB / 0.6962 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.1708, allocations: 316.9 kB / 0.6965 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.171, allocations: 210.1 kB / 0.6967 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.1712, allocations: 118.1 kB / 0.6968 GB, free: 4.223 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1713, allocations: 366.8 kB / 0.6971 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/0.172, allocations: 309 kB / 0.6974 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007688/0.1728, allocations: 399.1 kB / 0.6978 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004587/0.1774, allocations: 1.839 MB / 0.6996 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1774, allocations: 0 / 0.6996 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004384/0.1818, allocations: 1.357 MB / 0.7009 GB, free: 15.86 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.1819, allocations: 71.55 kB / 0.701 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004227/0.1861, allocations: 1.299 MB / 0.7023 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008864/0.187, allocations: 332.5 kB / 0.7026 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005161/0.1875, allocations: 119.8 kB / 0.7027 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008099/0.1957, allocations: 3.073 MB / 0.7057 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.1961, allocations: 75.52 kB / 0.7058 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/0.1962, allocations: 23.98 kB / 0.7058 GB, free: 10.7 MB / 0.545 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.0003978/0.1966, allocations: 292.5 kB / 0.7061 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.1967, allocations: 59.62 kB / 0.7061 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.2012, allocations: 1.364 MB / 0.7075 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.2013, allocations: 8 kB / 0.7075 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.2013, allocations: 0 / 0.7075 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.2013, allocations: 3.984 kB / 0.7075 GB, free: 8.949 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008304/0.2021, allocations: 0.7443 MB / 0.7082 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004143/0.2063, allocations: 1.278 MB / 0.7094 GB, free: 6.859 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.2067, allocations: 95.88 kB / 0.7095 GB, free: 6.766 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008395/0.2076, allocations: 324.6 kB / 0.7098 GB, free: 6.445 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.384e-05/0.2077, allocations: 19.98 kB / 0.7099 GB, free: 6.426 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007924/0.2156, allocations: 3.084 MB / 0.7129 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2156, allocations: 4.062 kB / 0.7129 GB, free: 3.199 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005212/0.2208, allocations: 1.906 MB / 0.7147 GB, free: 1.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/0.2212, allocations: 220.6 kB / 0.715 GB, free: 1.035 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.864e-05/0.2213, allocations: 8 kB / 0.715 GB, free: 1.027 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.2217, allocations: 35.95 kB / 0.715 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.2219, allocations: 60.42 kB / 0.7151 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.627e-05/0.2219, allocations: 31.91 kB / 0.7151 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003782/0.2223, allocations: 331.1 kB / 0.7154 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2223, allocations: 0 / 0.7154 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006932/0.223, allocations: 231.4 kB / 0.7156 GB, free: 360 kB / 0.545 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.006539/0.2296, allocations: 2.866 MB / 0.7184 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002492/0.2321, allocations: 1.139 MB / 0.7195 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2321, allocations: 0 / 0.7195 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.2336, allocations: 0.7018 MB / 0.7202 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005446/0.2341, allocations: 86.98 kB / 0.7203 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.2481, allocations: 6.866 MB / 0.727 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.2486, allocations: 0.9299 MB / 0.7279 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003733/0.249, allocations: 127.2 kB / 0.728 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.2493, allocations: 239.3 kB / 0.7283 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of SimCode: time 3.5e-07/0.2493, allocations: 0 / 0.7283 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04029/0.2896, allocations: 17.19 MB / 0.745 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.9, allocations: 17.36 kB / 0.7451 GB, free: 2.211 MB / 0.5762 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)