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.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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.001079/0.001079, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001389/0.001389, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.077/1.077, allocations: 143.4 MB / 434.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003108, allocations: 8 kB / 0.5161 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 83.41 MB / 0.5975 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.003487/0.1438, allocations: 2.743 MB / 0.6002 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003436/0.1472, allocations: 2.372 MB / 0.6025 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.1475, allocations: 7.938 kB / 0.6025 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.1479, allocations: 79.47 kB / 0.6026 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.1485, allocations: 151.1 kB / 0.6027 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.1496, allocations: 371.3 kB / 0.6031 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009116/0.1505, allocations: 0.7132 MB / 0.6038 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004491/0.151, allocations: 261 kB / 0.604 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004707/0.1515, allocations: 259.1 kB / 0.6043 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005799/0.1521, allocations: 322.8 kB / 0.6046 GB, free: 460 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1522, allocations: 32 kB / 0.6046 GB, free: 428 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005302/0.1527, allocations: 283.6 kB / 0.6049 GB, free: 144 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.263/0.4157, allocations: 169.3 kB / 0.6051 GB, free: 35.77 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002721/0.4161, allocations: 149.4 kB / 0.6052 GB, free: 35.74 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000914/0.417, allocations: 0.8261 MB / 0.606 GB, free: 35.71 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.417, allocations: 0 / 0.606 GB, free: 35.71 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.094e-06/0.417, allocations: 0 / 0.606 GB, free: 35.71 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.417, allocations: 2.969 kB / 0.606 GB, free: 35.71 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.001509/0.4185, allocations: 0.9773 MB / 0.607 GB, free: 35.05 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.4186, allocations: 7.875 kB / 0.607 GB, free: 35.05 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001172/0.4187, allocations: 107.3 kB / 0.6071 GB, free: 35.01 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.4189, allocations: 92.97 kB / 0.6072 GB, free: 34.96 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005102/0.4194, allocations: 470 kB / 0.6076 GB, free: 34.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.4196, allocations: 92.86 kB / 0.6077 GB, free: 34.69 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.4197, allocations: 57.22 kB / 0.6078 GB, free: 34.69 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.421, allocations: 0.793 MB / 0.6085 GB, free: 34.6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.421, allocations: 6.812 kB / 0.6085 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/0.4211, allocations: 26.25 kB / 0.6086 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.4211, allocations: 15.16 kB / 0.6086 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.4227, allocations: 0.7898 MB / 0.6093 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003222/0.4259, allocations: 2.731 MB / 0.612 GB, free: 33.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.4273, allocations: 0.7 MB / 0.6127 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008231/0.4281, allocations: 434.2 kB / 0.6131 GB, free: 33.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004381/0.4286, allocations: 0.5263 MB / 0.6136 GB, free: 32.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.4286, allocations: 38.52 kB / 0.6137 GB, free: 32.78 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 2.795e-06/0.4286, allocations: 0 / 0.6137 GB, free: 32.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.007238/0.4359, allocations: 2.274 MB / 0.6159 GB, free: 32.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.4359, allocations: 134.9 kB / 0.616 GB, free: 32.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005005/0.4364, allocations: 474.7 kB / 0.6165 GB, free: 32.24 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.4365, allocations: 35.27 kB / 0.6165 GB, free: 32.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.4367, allocations: 317.6 kB / 0.6168 GB, free: 32.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4368, allocations: 202.9 kB / 0.617 GB, free: 31.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.4368, allocations: 9.375 kB / 0.617 GB, free: 31.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.381e-05/0.4369, allocations: 371.4 kB / 0.6174 GB, free: 31.6 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006249/0.4376, allocations: 310.6 kB / 0.6177 GB, free: 31.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/0.4382, allocations: 392.7 kB / 0.618 GB, free: 31.51 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.4389, allocations: 376.7 kB / 0.6184 GB, free: 31.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4389, allocations: 0 / 0.6184 GB, free: 31.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003655/0.4425, allocations: 1.358 MB / 0.6197 GB, free: 31.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.4426, allocations: 67.38 kB / 0.6198 GB, free: 31.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003732/0.4463, allocations: 1.306 MB / 0.6211 GB, free: 31.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008842/0.4473, allocations: 333 kB / 0.6214 GB, free: 31.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005964/0.4479, allocations: 117.9 kB / 0.6215 GB, free: 31.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006408/0.4543, allocations: 2.837 MB / 0.6243 GB, free: 29.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005805/0.4549, allocations: 71.12 kB / 0.6243 GB, free: 29.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.84e-05/0.455, allocations: 30.94 kB / 0.6243 GB, free: 29.74 MB / 0.4981 GB Warning: Assuming fixed start value for the following 3 variables: PI1.x:VARIABLE(start = PI1.x_start fixed = true ) "State of block" 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 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 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.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 initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005236/0.4556, allocations: 300.3 kB / 0.6246 GB, free: 29.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.4557, allocations: 56.03 kB / 0.6247 GB, free: 29.56 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/0.4596, allocations: 1.399 MB / 0.6261 GB, free: 29.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.4597, allocations: 7.25 kB / 0.6261 GB, free: 29.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.4597, allocations: 0 / 0.6261 GB, free: 29.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.4597, allocations: 7.422 kB / 0.6261 GB, free: 29.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009071/0.4606, allocations: 0.7457 MB / 0.6268 GB, free: 29.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003585/0.4642, allocations: 1.278 MB / 0.628 GB, free: 28.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.4647, allocations: 95.34 kB / 0.6281 GB, free: 28.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007205/0.4654, allocations: 321 kB / 0.6284 GB, free: 28.81 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.834e-05/0.4655, allocations: 22.08 kB / 0.6285 GB, free: 28.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006146/0.4716, allocations: 2.842 MB / 0.6312 GB, free: 27.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.4717, allocations: 8.641 kB / 0.6312 GB, free: 27.24 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/0.4764, allocations: 1.903 MB / 0.6331 GB, free: 26.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.4768, allocations: 226.7 kB / 0.6333 GB, free: 26.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4769, allocations: 16.17 kB / 0.6333 GB, free: 26.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.4773, allocations: 40.08 kB / 0.6334 GB, free: 26.35 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.4775, allocations: 67.2 kB / 0.6334 GB, free: 26.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.4776, allocations: 20.12 kB / 0.6335 GB, free: 26.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003648/0.4779, allocations: 328.1 kB / 0.6338 GB, free: 26.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4779, allocations: 0 / 0.6338 GB, free: 26.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007451/0.4787, allocations: 223.6 kB / 0.634 GB, free: 26.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005813/0.4845, allocations: 2.885 MB / 0.6368 GB, free: 24.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.4869, allocations: 1.13 MB / 0.6379 GB, free: 24.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4869, allocations: 1.375 kB / 0.6379 GB, free: 24.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001372/0.4883, allocations: 0.7039 MB / 0.6386 GB, free: 23.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.4889, allocations: 74.52 kB / 0.6387 GB, free: 23.86 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.499, allocations: 4.75 MB / 0.6433 GB, free: 21.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.4996, allocations: 0.9336 MB / 0.6442 GB, free: 20.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005166/0.5001, allocations: 133.2 kB / 0.6443 GB, free: 20.95 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/0.5005, allocations: 237.9 kB / 0.6446 GB, free: 20.77 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/0.5005, allocations: 4 kB / 0.6446 GB, free: 20.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03626/0.5368, allocations: 15.9 MB / 0.6601 GB, free: 17.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/0.537, allocations: 293.7 kB / 0.6604 GB, free: 17.58 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.798, allocations: 4 kB / 0.6604 GB, free: 17.57 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/linux/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) Environment - environmentSimulation: