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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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.004612/0.004612, allocations: 98.86 kB / 15.73 MB, free: 6.043 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.001263/0.001263, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 1.001/1.001, allocations: 143.3 MB / 433.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 63.89 kB / 0.5952 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3508, allocations: 82.03 MB / 0.6753 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.004281/0.3551, allocations: 3.23 MB / 0.6784 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00394/0.3591, allocations: 2.562 MB / 0.6809 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002882/0.3594, allocations: 7.219 kB / 0.6809 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.3598, allocations: 99.11 kB / 0.681 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005193/0.3603, allocations: 203.5 kB / 0.6812 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.3614, allocations: 486.9 kB / 0.6817 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0009132/0.3623, allocations: 0.8515 MB / 0.6825 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004524/0.3628, allocations: 324.2 kB / 0.6828 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004032/0.3632, allocations: 339.5 kB / 0.6832 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005508/0.3638, allocations: 398.7 kB / 0.6835 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.3639, allocations: 88.06 kB / 0.6836 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005713/0.3645, allocations: 365.5 kB / 0.684 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.3647, allocations: 242.4 kB / 0.6842 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.3651, allocations: 396.7 kB / 0.6846 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.3665, allocations: 1.147 MB / 0.6857 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3665, allocations: 0 / 0.6857 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3665, allocations: 0 / 0.6857 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.3665, allocations: 0 / 0.6857 GB, free: 9.152 MB / 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.00209/0.3686, allocations: 1.138 MB / 0.6868 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3687, allocations: 10.84 kB / 0.6868 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.3688, allocations: 112.7 kB / 0.6869 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.3691, allocations: 91.36 kB / 0.687 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007086/0.3698, allocations: 499.7 kB / 0.6875 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.37, allocations: 91.95 kB / 0.6876 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.3701, allocations: 64.23 kB / 0.6877 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.3718, allocations: 0.7997 MB / 0.6884 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.3718, allocations: 1.438 kB / 0.6884 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-05/0.3719, allocations: 25.41 kB / 0.6885 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.3719, allocations: 15.03 kB / 0.6885 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.3738, allocations: 0.7988 MB / 0.6893 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004216/0.3781, allocations: 2.716 MB / 0.6919 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.3797, allocations: 0.7115 MB / 0.6926 GB, free: 4.004 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009754/0.3807, allocations: 448.3 kB / 0.693 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006725/0.3814, allocations: 0.5234 MB / 0.6935 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.3814, allocations: 39 kB / 0.6936 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=62): time 2.265e-06/0.3814, allocations: 0 / 0.6936 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of matching and sorting (n=62): time 0.009354/0.3908, allocations: 2.261 MB / 0.6958 GB, free: 0.7656 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3909, allocations: 148.9 kB / 0.6959 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006245/0.3916, allocations: 465.9 kB / 0.6964 GB, free: 128 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.283e-05/0.3916, allocations: 37.7 kB / 0.6964 GB, free: 84 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.3919, allocations: 316.9 kB / 0.6967 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3921, allocations: 214.1 kB / 0.6969 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.3923, allocations: 114.2 kB / 0.697 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3925, allocations: 366.8 kB / 0.6974 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007906/0.3933, allocations: 305 kB / 0.6977 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008787/0.3942, allocations: 399.1 kB / 0.698 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004909/0.3991, allocations: 1.838 MB / 0.6998 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3991, allocations: 0 / 0.6998 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004673/0.4038, allocations: 1.369 MB / 0.7012 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.74e-05/0.4039, allocations: 59.41 kB / 0.7012 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004545/0.4084, allocations: 1.311 MB / 0.7025 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009775/0.4094, allocations: 332.5 kB / 0.7028 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.41, allocations: 115.8 kB / 0.7029 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008806/0.4188, allocations: 3.077 MB / 0.7059 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.4194, allocations: 71.66 kB / 0.706 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.4195, allocations: 27.98 kB / 0.706 GB, free: 5.902 MB / 0.5294 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.0004849/0.42, allocations: 283.7 kB / 0.7063 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.4201, allocations: 63.62 kB / 0.7064 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004839/0.425, allocations: 1.357 MB / 0.7077 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.425, allocations: 8 kB / 0.7077 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.425, allocations: 0 / 0.7077 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.425, allocations: 3.984 kB / 0.7077 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.4261, allocations: 0.7521 MB / 0.7084 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004511/0.4306, allocations: 1.282 MB / 0.7097 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.4311, allocations: 91.88 kB / 0.7098 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009236/0.432, allocations: 324.5 kB / 0.7101 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.4321, allocations: 19.98 kB / 0.7101 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008615/0.4407, allocations: 3.08 MB / 0.7131 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4407, allocations: 0 / 0.7131 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005758/0.4465, allocations: 1.91 MB / 0.715 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003577/0.4469, allocations: 224.5 kB / 0.7152 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.414e-05/0.447, allocations: 15.94 kB / 0.7152 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.4474, allocations: 35.95 kB / 0.7152 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.4476, allocations: 68.36 kB / 0.7153 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.4477, allocations: 19.98 kB / 0.7153 GB, free: 12.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004466/0.4481, allocations: 335.1 kB / 0.7156 GB, free: 11.78 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4482, allocations: 0 / 0.7156 GB, free: 11.78 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007663/0.4489, allocations: 231.4 kB / 0.7159 GB, free: 11.55 MB / 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.007578/0.4565, allocations: 2.861 MB / 0.7187 GB, free: 8.836 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002677/0.4592, allocations: 1.139 MB / 0.7198 GB, free: 7.652 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4592, allocations: 4 kB / 0.7198 GB, free: 7.648 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.4608, allocations: 0.7018 MB / 0.7205 GB, free: 6.914 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.4614, allocations: 80.09 kB / 0.7205 GB, free: 6.84 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.4771, allocations: 6.857 MB / 0.7272 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.4778, allocations: 0.9377 MB / 0.7282 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004124/0.4782, allocations: 124.7 kB / 0.7283 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003654/0.4786, allocations: 243.3 kB / 0.7285 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.4786, allocations: 0 / 0.7285 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05449/0.5331, allocations: 17.19 MB / 0.7453 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.99, allocations: 15.83 kB / 0.7453 GB, free: 13.42 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)