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.001113/0.001113, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001089/0.001089, allocations: 192.1 kB / 16.25 MB, free: 6.629 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.152/1.152, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.8391/0.8391, allocations: 143 MB / 433.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 59.91 kB / 0.5138 GB, free: 11.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1191, allocations: 82.05 MB / 0.5939 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.003885/0.123, allocations: 3.247 MB / 0.5971 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003105/0.1262, allocations: 2.515 MB / 0.5995 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.1264, allocations: 4 kB / 0.5995 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.1268, allocations: 79.47 kB / 0.5996 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.1272, allocations: 167 kB / 0.5998 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008917/0.1281, allocations: 441.3 kB / 0.6002 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007429/0.1289, allocations: 0.8421 MB / 0.601 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.1293, allocations: 329.5 kB / 0.6013 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003552/0.1297, allocations: 346.9 kB / 0.6016 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004669/0.1301, allocations: 394.6 kB / 0.602 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1302, allocations: 88 kB / 0.6021 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004499/0.1307, allocations: 367.6 kB / 0.6025 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.1309, allocations: 243.3 kB / 0.6027 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.1312, allocations: 394 kB / 0.6031 GB, free: 412 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.1924/0.3236, allocations: 1.117 MB / 0.6042 GB, free: 38.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3236, allocations: 2.188 kB / 0.6042 GB, free: 38.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3236, allocations: 0 / 0.6042 GB, free: 38.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.223e-05/0.3236, allocations: 3.062 kB / 0.6042 GB, free: 38.75 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.001779/0.3254, allocations: 1.114 MB / 0.6053 GB, free: 38.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.3255, allocations: 8.688 kB / 0.6053 GB, free: 38.07 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.3256, allocations: 110.1 kB / 0.6054 GB, free: 38.03 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.3258, allocations: 87.97 kB / 0.6054 GB, free: 37.99 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.3263, allocations: 495.5 kB / 0.6059 GB, free: 37.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.3264, allocations: 95.56 kB / 0.606 GB, free: 37.69 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.963e-05/0.3265, allocations: 60.78 kB / 0.6061 GB, free: 37.69 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.3277, allocations: 0.7946 MB / 0.6068 GB, free: 37.6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.3278, allocations: 6.188 kB / 0.6069 GB, free: 37.6 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.248e-05/0.3278, allocations: 22.84 kB / 0.6069 GB, free: 37.6 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3279, allocations: 14.44 kB / 0.6069 GB, free: 37.6 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.3293, allocations: 0.7963 MB / 0.6077 GB, free: 37.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.3323, allocations: 2.737 MB / 0.6103 GB, free: 36.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3335, allocations: 0.7113 MB / 0.611 GB, free: 36.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007255/0.3343, allocations: 437.6 kB / 0.6114 GB, free: 36.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004119/0.3347, allocations: 0.5195 MB / 0.612 GB, free: 35.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.3347, allocations: 47.52 kB / 0.612 GB, free: 35.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 1.844e-06/0.3347, allocations: 4 kB / 0.612 GB, free: 35.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.007534/0.3423, allocations: 2.248 MB / 0.6142 GB, free: 35.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.3423, allocations: 146.7 kB / 0.6143 GB, free: 35.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.3427, allocations: 472.2 kB / 0.6148 GB, free: 35.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.502e-05/0.3427, allocations: 35.73 kB / 0.6148 GB, free: 35.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.3429, allocations: 311.8 kB / 0.6151 GB, free: 35.03 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.343, allocations: 208.3 kB / 0.6153 GB, free: 34.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.3431, allocations: 111.2 kB / 0.6154 GB, free: 34.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.029e-05/0.3432, allocations: 369.8 kB / 0.6158 GB, free: 34.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005863/0.3438, allocations: 301.9 kB / 0.6161 GB, free: 34.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.3444, allocations: 401.7 kB / 0.6165 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003699/0.3481, allocations: 1.838 MB / 0.6182 GB, free: 33.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3481, allocations: 0 / 0.6182 GB, free: 33.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003562/0.3517, allocations: 1.36 MB / 0.6196 GB, free: 32.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.3517, allocations: 69.78 kB / 0.6196 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003492/0.3552, allocations: 1.296 MB / 0.6209 GB, free: 32.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006982/0.3559, allocations: 332.3 kB / 0.6212 GB, free: 32.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.3564, allocations: 127.3 kB / 0.6213 GB, free: 32.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006529/0.3629, allocations: 3.079 MB / 0.6244 GB, free: 30.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.3633, allocations: 74.92 kB / 0.6244 GB, free: 30.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.3634, allocations: 24.88 kB / 0.6244 GB, free: 30.74 MB / 0.4981 GB Warning: Assuming fixed start value for the following 3 variables: R3C2_1.Tint.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))) start = 288.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of the element" type: Real R3C2_1.Ts.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, 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.0002964/0.3637, allocations: 310.3 kB / 0.6247 GB, free: 30.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.683e-05/0.3638, allocations: 54.38 kB / 0.6248 GB, free: 30.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.3675, allocations: 1.395 MB / 0.6262 GB, free: 30.08 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3676, allocations: 8.859 kB / 0.6262 GB, free: 30.08 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.3676, allocations: 3.094 kB / 0.6262 GB, free: 30.08 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3676, allocations: 0 / 0.6262 GB, free: 30.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005981/0.3682, allocations: 0.749 MB / 0.6269 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00346/0.3717, allocations: 1.276 MB / 0.6281 GB, free: 29.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.3721, allocations: 97.16 kB / 0.6282 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006541/0.3727, allocations: 328.9 kB / 0.6286 GB, free: 29.24 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.3728, allocations: 20.73 kB / 0.6286 GB, free: 29.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0065/0.3793, allocations: 3.081 MB / 0.6316 GB, free: 27.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3793, allocations: 0 / 0.6316 GB, free: 27.55 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004369/0.3837, allocations: 1.915 MB / 0.6334 GB, free: 26.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3839, allocations: 209.5 kB / 0.6336 GB, free: 26.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/0.3839, allocations: 13.69 kB / 0.6337 GB, free: 26.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.3843, allocations: 36.28 kB / 0.6337 GB, free: 26.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3845, allocations: 69.12 kB / 0.6338 GB, free: 26.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-05/0.3845, allocations: 24.03 kB / 0.6338 GB, free: 26.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000266/0.3848, allocations: 337.8 kB / 0.6341 GB, free: 26.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3848, allocations: 0 / 0.6341 GB, free: 26.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000579/0.3854, allocations: 224.1 kB / 0.6343 GB, free: 26.43 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.005646/0.3911, allocations: 2.871 MB / 0.6371 GB, free: 25.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00231/0.3934, allocations: 1.246 MB / 0.6383 GB, free: 24.54 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3934, allocations: 4 kB / 0.6383 GB, free: 24.54 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.3946, allocations: 0.712 MB / 0.639 GB, free: 24.17 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.3951, allocations: 85.17 kB / 0.6391 GB, free: 24.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.4075, allocations: 7.178 MB / 0.6461 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.4078, allocations: 0.9369 MB / 0.647 GB, free: 19.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003754/0.4082, allocations: 134.4 kB / 0.6472 GB, free: 19.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.4085, allocations: 239.7 kB / 0.6474 GB, free: 19.61 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.4085, allocations: 0 / 0.6474 GB, free: 19.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7387/1.147, allocations: 16.83 MB / 0.6638 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/1.147, allocations: 313.6 kB / 0.6641 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/3.259, allocations: 3.75 kB / 0.6641 GB, free: 15.33 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)