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.008402/0.008402, allocations: 99.31 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.001953/0.001953, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.9739/0.9739, allocations: 143 MB / 433.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 64.14 kB / 0.5949 GB, free: 9 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3891, allocations: 82.03 MB / 0.675 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.004096/0.3932, allocations: 3.236 MB / 0.6782 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003855/0.3971, allocations: 2.566 MB / 0.6807 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003992/0.3975, allocations: 10.28 kB / 0.6807 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004685/0.398, allocations: 103.8 kB / 0.6808 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0006956/0.3988, allocations: 191.1 kB / 0.681 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.4001, allocations: 496.2 kB / 0.6815 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001076/0.4012, allocations: 0.8516 MB / 0.6823 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005001/0.4017, allocations: 314.9 kB / 0.6826 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005409/0.4022, allocations: 344.1 kB / 0.6829 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006563/0.4029, allocations: 387.2 kB / 0.6833 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001974/0.4031, allocations: 87.69 kB / 0.6834 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007052/0.4038, allocations: 376.5 kB / 0.6837 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002837/0.4041, allocations: 239.8 kB / 0.684 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005433/0.4047, allocations: 392.7 kB / 0.6843 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.4062, allocations: 1.149 MB / 0.6855 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.4062, allocations: 0 / 0.6855 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.714e-06/0.4062, allocations: 1.25 kB / 0.6855 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.653e-05/0.4063, allocations: 0 / 0.6855 GB, free: 9.258 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.002721/0.409, allocations: 1.104 MB / 0.6865 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.409, allocations: 9.969 kB / 0.6865 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000232/0.4093, allocations: 113.9 kB / 0.6867 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/0.4097, allocations: 98.16 kB / 0.6867 GB, free: 8.195 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009194/0.4106, allocations: 496.7 kB / 0.6872 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.4108, allocations: 91.12 kB / 0.6873 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.411, allocations: 64.52 kB / 0.6874 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.4128, allocations: 0.7998 MB / 0.6882 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.4129, allocations: 0 / 0.6882 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.901e-05/0.413, allocations: 26.3 kB / 0.6882 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.413, allocations: 14.5 kB / 0.6882 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.4149, allocations: 0.7999 MB / 0.689 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004544/0.4194, allocations: 2.704 MB / 0.6916 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.4211, allocations: 0.7134 MB / 0.6923 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009026/0.422, allocations: 448.5 kB / 0.6927 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005691/0.4226, allocations: 0.5152 MB / 0.6932 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.4226, allocations: 41.97 kB / 0.6933 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=62): time 2.454e-06/0.4227, allocations: 0 / 0.6933 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of matching and sorting (n=62): time 0.008232/0.4309, allocations: 2.262 MB / 0.6955 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.431, allocations: 140.9 kB / 0.6956 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006725/0.4317, allocations: 465.9 kB / 0.6961 GB, free: 388 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.4318, allocations: 37.7 kB / 0.6961 GB, free: 344 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.432, allocations: 312.3 kB / 0.6964 GB, free: 24 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.4322, allocations: 205.2 kB / 0.6966 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.4324, allocations: 118.1 kB / 0.6967 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4326, allocations: 366.8 kB / 0.6971 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006879/0.4333, allocations: 305 kB / 0.6974 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/0.434, allocations: 399.1 kB / 0.6977 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004404/0.4384, allocations: 1.841 MB / 0.6995 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4384, allocations: 0 / 0.6995 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004138/0.4426, allocations: 1.361 MB / 0.7009 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/0.4427, allocations: 67.39 kB / 0.7009 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003964/0.4466, allocations: 1.299 MB / 0.7022 GB, free: 9.938 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008146/0.4475, allocations: 332.5 kB / 0.7025 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.448, allocations: 115.9 kB / 0.7026 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/0.4556, allocations: 3.083 MB / 0.7056 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/0.4563, allocations: 63.55 kB / 0.7057 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.4564, allocations: 31.98 kB / 0.7057 GB, free: 6.168 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.0005401/0.457, allocations: 281.8 kB / 0.706 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.4572, allocations: 63.22 kB / 0.7061 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004353/0.4615, allocations: 1.36 MB / 0.7074 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.4616, allocations: 4 kB / 0.7074 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4616, allocations: 4 kB / 0.7074 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4616, allocations: 3.984 kB / 0.7074 GB, free: 4.434 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009888/0.4626, allocations: 0.7517 MB / 0.7081 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004037/0.4666, allocations: 1.274 MB / 0.7094 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.4671, allocations: 91.89 kB / 0.7095 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007768/0.4679, allocations: 328.5 kB / 0.7098 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.972e-05/0.468, allocations: 19.98 kB / 0.7098 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007518/0.4755, allocations: 3.068 MB / 0.7128 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4756, allocations: 7.969 kB / 0.7128 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005294/0.4809, allocations: 1.91 MB / 0.7147 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003661/0.4812, allocations: 224.2 kB / 0.7149 GB, free: 12.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.4814, allocations: 19.92 kB / 0.7149 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.4819, allocations: 27.97 kB / 0.7149 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.4821, allocations: 68.41 kB / 0.715 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.559e-05/0.4821, allocations: 27.98 kB / 0.715 GB, free: 12.38 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004161/0.4826, allocations: 331.1 kB / 0.7153 GB, free: 12.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4826, allocations: 0 / 0.7153 GB, free: 12.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007827/0.4834, allocations: 227.4 kB / 0.7155 GB, free: 11.83 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.006626/0.49, allocations: 2.853 MB / 0.7183 GB, free: 9.117 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002489/0.4925, allocations: 1.139 MB / 0.7194 GB, free: 7.934 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4925, allocations: 7.938 kB / 0.7194 GB, free: 7.926 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.494, allocations: 0.698 MB / 0.7201 GB, free: 7.195 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.4948, allocations: 85.11 kB / 0.7202 GB, free: 7.117 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.5096, allocations: 6.834 MB / 0.7269 GB, free: 140 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/0.5102, allocations: 0.9338 MB / 0.7278 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000439/0.5107, allocations: 125.7 kB / 0.7279 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/0.511, allocations: 239.3 kB / 0.7281 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/0.5111, allocations: 8 kB / 0.7282 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04423/0.5553, allocations: 17.45 MB / 0.7452 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.09, allocations: 10.8 kB / 0.7452 GB, free: 13.48 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 & /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)