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.001073/0.001073, allocations: 108 kB / 15.61 MB, free: 152 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.001093/0.001093, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.9032/0.9032, allocations: 143 MB / 433.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 67.89 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1328, allocations: 82.04 MB / 0.5944 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.00451/0.1374, allocations: 3.21 MB / 0.5975 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003649/0.141, allocations: 2.551 MB / 0.6 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.1413, allocations: 7.938 kB / 0.6 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.1417, allocations: 103.1 kB / 0.6001 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004558/0.1421, allocations: 194.6 kB / 0.6003 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009406/0.1431, allocations: 493.6 kB / 0.6008 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007899/0.1439, allocations: 0.8459 MB / 0.6016 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.1444, allocations: 333.5 kB / 0.6019 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003366/0.1447, allocations: 335 kB / 0.6022 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004706/0.1452, allocations: 394.6 kB / 0.6026 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.1453, allocations: 88 kB / 0.6027 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005395/0.1459, allocations: 367.6 kB / 0.603 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.1461, allocations: 243.2 kB / 0.6033 GB, free: 364 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.2188/0.3649, allocations: 399 kB / 0.6036 GB, free: 38.13 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.3662, allocations: 1.115 MB / 0.6047 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3663, allocations: 0 / 0.6047 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3663, allocations: 0 / 0.6047 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.3663, allocations: 2.625 kB / 0.6047 GB, free: 38.12 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.001607/0.3679, allocations: 1.113 MB / 0.6058 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.3679, allocations: 9.875 kB / 0.6058 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.368, allocations: 109.6 kB / 0.6059 GB, free: 37.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.3683, allocations: 91.38 kB / 0.606 GB, free: 37.36 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.3687, allocations: 490.2 kB / 0.6065 GB, free: 37.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.3688, allocations: 92.69 kB / 0.6066 GB, free: 37.05 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.014e-05/0.3689, allocations: 61.09 kB / 0.6066 GB, free: 37.05 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3702, allocations: 0.7945 MB / 0.6074 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3703, allocations: 1.125 kB / 0.6074 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.3703, allocations: 25.84 kB / 0.6074 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.3704, allocations: 14 kB / 0.6075 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.3719, allocations: 0.7982 MB / 0.6082 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002956/0.3749, allocations: 2.747 MB / 0.6109 GB, free: 35.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3762, allocations: 0.7078 MB / 0.6116 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007766/0.377, allocations: 435.4 kB / 0.612 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004325/0.3775, allocations: 0.5237 MB / 0.6125 GB, free: 35.18 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.3775, allocations: 46.16 kB / 0.6126 GB, free: 35.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 2.504e-06/0.3775, allocations: 0.75 kB / 0.6126 GB, free: 35.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.00795/0.3855, allocations: 2.257 MB / 0.6148 GB, free: 34.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3855, allocations: 146.6 kB / 0.6149 GB, free: 34.72 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.3859, allocations: 467.4 kB / 0.6154 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.386, allocations: 34.98 kB / 0.6154 GB, free: 34.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.3861, allocations: 314.7 kB / 0.6157 GB, free: 34.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.3862, allocations: 209.3 kB / 0.6159 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.3864, allocations: 107.8 kB / 0.616 GB, free: 34.12 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.3864, allocations: 361.8 kB / 0.6164 GB, free: 33.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006307/0.3871, allocations: 310.8 kB / 0.6166 GB, free: 33.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.3877, allocations: 403.3 kB / 0.617 GB, free: 33.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003976/0.3917, allocations: 1.838 MB / 0.6188 GB, free: 32.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3917, allocations: 2.625 kB / 0.6188 GB, free: 32.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003832/0.3956, allocations: 1.359 MB / 0.6202 GB, free: 32.3 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.3956, allocations: 63.72 kB / 0.6202 GB, free: 32.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003764/0.3994, allocations: 1.302 MB / 0.6215 GB, free: 31.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00077/0.4001, allocations: 328.6 kB / 0.6218 GB, free: 31.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.4006, allocations: 120 kB / 0.6219 GB, free: 31.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007128/0.4078, allocations: 3.084 MB / 0.6249 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.4082, allocations: 62.28 kB / 0.625 GB, free: 30.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.4082, allocations: 25.09 kB / 0.625 GB, free: 30.06 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.0002987/0.4085, allocations: 291.7 kB / 0.6253 GB, free: 29.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.4086, allocations: 54.12 kB / 0.6253 GB, free: 29.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.4126, allocations: 1.361 MB / 0.6267 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.4126, allocations: 6.219 kB / 0.6267 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.4126, allocations: 0 / 0.6267 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4127, allocations: 3.281 kB / 0.6267 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006433/0.4133, allocations: 0.7559 MB / 0.6274 GB, free: 29.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00375/0.4171, allocations: 1.281 MB / 0.6287 GB, free: 28.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/0.4175, allocations: 95.73 kB / 0.6288 GB, free: 28.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007216/0.4182, allocations: 326.5 kB / 0.6291 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.4183, allocations: 17.95 kB / 0.6291 GB, free: 28.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006964/0.4252, allocations: 3.083 MB / 0.6321 GB, free: 26.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4253, allocations: 2.688 kB / 0.6321 GB, free: 26.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00471/0.43, allocations: 1.905 MB / 0.634 GB, free: 26.17 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.4302, allocations: 211.7 kB / 0.6342 GB, free: 26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.4303, allocations: 17.06 kB / 0.6342 GB, free: 26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.4307, allocations: 33.92 kB / 0.6342 GB, free: 25.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.4308, allocations: 63.06 kB / 0.6343 GB, free: 25.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/0.4309, allocations: 20.02 kB / 0.6343 GB, free: 25.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002885/0.4312, allocations: 340.9 kB / 0.6346 GB, free: 25.81 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4312, allocations: 0 / 0.6346 GB, free: 25.81 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000627/0.4318, allocations: 227.9 kB / 0.6348 GB, free: 25.75 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.006045/0.4379, allocations: 2.88 MB / 0.6376 GB, free: 24.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002532/0.4404, allocations: 1.249 MB / 0.6389 GB, free: 23.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.4404, allocations: 4 kB / 0.6389 GB, free: 23.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4418, allocations: 0.7003 MB / 0.6396 GB, free: 23.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.4423, allocations: 82 kB / 0.6396 GB, free: 23.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.4555, allocations: 6.912 MB / 0.6464 GB, free: 20.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.4559, allocations: 0.9323 MB / 0.6473 GB, free: 19.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000396/0.4563, allocations: 128.9 kB / 0.6474 GB, free: 19.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.4566, allocations: 238.1 kB / 0.6476 GB, free: 19.22 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.4566, allocations: 1.438 kB / 0.6476 GB, free: 19.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03777/0.4944, allocations: 16.89 MB / 0.6641 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.11, allocations: 12.72 kB / 0.6642 GB, free: 15.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_BuildingStock_RnCm_Examples_R3C2_PIControlled_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_BuildingStock_RnCm_Examples_R3C2_PIControlled.fmu > BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe 2>&1)