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.00465/0.00465, allocations: 100.5 kB / 15.73 MB, free: 6.047 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.001068/0.001069, allocations: 195.2 kB / 16.67 MB, free: 5.949 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.8589/0.8589, allocations: 143.1 MB / 433.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 68 kB / 0.5949 GB, free: 12.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1518, allocations: 82.02 MB / 0.675 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.004758/0.1566, allocations: 3.237 MB / 0.6782 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004304/0.1609, allocations: 2.566 MB / 0.6807 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004608/0.1615, allocations: 4 kB / 0.6807 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000536/0.162, allocations: 103.1 kB / 0.6808 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0007751/0.1628, allocations: 198.6 kB / 0.681 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.1641, allocations: 493.9 kB / 0.6815 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1652, allocations: 0.8498 MB / 0.6823 GB, free: 3.5 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005078/0.1657, allocations: 329.5 kB / 0.6826 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005073/0.1662, allocations: 339 kB / 0.6829 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006152/0.1668, allocations: 394.6 kB / 0.6833 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.167, allocations: 88 kB / 0.6834 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000641/0.1677, allocations: 367.5 kB / 0.6837 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.1679, allocations: 243.3 kB / 0.684 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004877/0.1684, allocations: 394 kB / 0.6843 GB, free: 1.379 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001436/0.1699, allocations: 1.148 MB / 0.6855 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1699, allocations: 0 / 0.6855 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1699, allocations: 4 kB / 0.6855 GB, free: 228 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.539e-05/0.1699, allocations: 0 / 0.6855 GB, free: 228 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.002344/0.1723, allocations: 1.133 MB / 0.6866 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1723, allocations: 12.03 kB / 0.6866 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/0.1725, allocations: 110.7 kB / 0.6867 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.1728, allocations: 100.3 kB / 0.6868 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007379/0.1736, allocations: 493.7 kB / 0.6873 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.1737, allocations: 94.98 kB / 0.6874 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.1738, allocations: 63.95 kB / 0.6874 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1754, allocations: 0.7939 MB / 0.6882 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1755, allocations: 0 / 0.6882 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-05/0.1756, allocations: 28 kB / 0.6882 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1756, allocations: 16 kB / 0.6882 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.1775, allocations: 0.7935 MB / 0.689 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004038/0.1815, allocations: 2.726 MB / 0.6917 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.1832, allocations: 0.7075 MB / 0.6924 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009822/0.1842, allocations: 442.1 kB / 0.6928 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005844/0.1848, allocations: 0.5234 MB / 0.6933 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1848, allocations: 43 kB / 0.6933 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=62): time 2.625e-06/0.1848, allocations: 0 / 0.6933 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of matching and sorting (n=62): time 0.008988/0.1938, allocations: 2.261 MB / 0.6955 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.399e-05/0.1939, allocations: 148.8 kB / 0.6957 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006122/0.1946, allocations: 469.9 kB / 0.6961 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.1946, allocations: 37.7 kB / 0.6962 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.1948, allocations: 316.9 kB / 0.6965 GB, free: 4.414 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.195, allocations: 214.1 kB / 0.6967 GB, free: 4.203 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.1952, allocations: 114.2 kB / 0.6968 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1954, allocations: 366.7 kB / 0.6971 GB, free: 3.719 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007697/0.1962, allocations: 309 kB / 0.6974 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008061/0.197, allocations: 395.1 kB / 0.6978 GB, free: 3.004 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004827/0.2018, allocations: 1.832 MB / 0.6996 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2019, allocations: 0 / 0.6996 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004514/0.2064, allocations: 1.373 MB / 0.7009 GB, free: 15.72 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.567e-05/0.2065, allocations: 59.41 kB / 0.701 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00421/0.2107, allocations: 1.307 MB / 0.7023 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009426/0.2116, allocations: 332.5 kB / 0.7026 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005626/0.2122, allocations: 111.9 kB / 0.7027 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008411/0.2206, allocations: 3.078 MB / 0.7057 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/0.2213, allocations: 75.66 kB / 0.7058 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.2215, allocations: 31.86 kB / 0.7058 GB, free: 10.55 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.0005844/0.2221, allocations: 286.8 kB / 0.7061 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.2223, allocations: 59.62 kB / 0.7061 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004527/0.2268, allocations: 1.349 MB / 0.7074 GB, free: 8.844 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.2268, allocations: 8 kB / 0.7075 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.2268, allocations: 4 kB / 0.7075 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2269, allocations: 7.984 kB / 0.7075 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2279, allocations: 0.752 MB / 0.7082 GB, free: 8.023 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004296/0.2322, allocations: 1.278 MB / 0.7094 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004869/0.2327, allocations: 95.81 kB / 0.7095 GB, free: 6.633 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008797/0.2336, allocations: 324.6 kB / 0.7098 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.361e-05/0.2337, allocations: 19.98 kB / 0.7099 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008135/0.2418, allocations: 3.08 MB / 0.7129 GB, free: 3.074 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2418, allocations: 0 / 0.7129 GB, free: 3.074 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005607/0.2474, allocations: 1.914 MB / 0.7147 GB, free: 1.137 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003783/0.2478, allocations: 216.6 kB / 0.715 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.248, allocations: 12 kB / 0.715 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.2484, allocations: 31.97 kB / 0.715 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.2487, allocations: 64.41 kB / 0.7151 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-05/0.2487, allocations: 23.98 kB / 0.7151 GB, free: 0.7734 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004779/0.2492, allocations: 335.1 kB / 0.7154 GB, free: 460 kB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/0.2492, allocations: 0 / 0.7154 GB, free: 460 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008908/0.2501, allocations: 231.4 kB / 0.7156 GB, free: 228 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.006875/0.257, allocations: 2.876 MB / 0.7184 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002656/0.2597, allocations: 1.139 MB / 0.7195 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2597, allocations: 0 / 0.7195 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.2613, allocations: 0.6979 MB / 0.7202 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.2619, allocations: 82.73 kB / 0.7203 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/0.2771, allocations: 6.86 MB / 0.727 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005857/0.2777, allocations: 0.9377 MB / 0.7279 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004281/0.2782, allocations: 123.9 kB / 0.728 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00038/0.2786, allocations: 243.3 kB / 0.7283 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/0.2786, allocations: 0 / 0.7283 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04447/0.3231, allocations: 17.2 MB / 0.7451 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.17, allocations: 8.047 kB / 0.7451 GB, free: 2.078 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)