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.001157/0.001157, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001261/0.001261, allocations: 177.3 kB / 15.94 MB, free: 228 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.297/1.297, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9562/0.9562, allocations: 143.3 MB / 434.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00029/0.0002901, allocations: 11.98 kB / 0.5159 GB, free: 11.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1521, allocations: 83.42 MB / 0.5973 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.003063/0.1552, allocations: 2.631 MB / 0.5999 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003337/0.1585, allocations: 2.38 MB / 0.6022 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.1588, allocations: 4 kB / 0.6022 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.1591, allocations: 79.39 kB / 0.6023 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004117/0.1595, allocations: 175.4 kB / 0.6025 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009063/0.1604, allocations: 367.1 kB / 0.6028 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006929/0.1611, allocations: 0.4918 MB / 0.6033 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.1616, allocations: 253 kB / 0.6036 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.1619, allocations: 255.2 kB / 0.6038 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.1623, allocations: 294.8 kB / 0.6041 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.613e-05/0.1624, allocations: 32 kB / 0.6041 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.1629, allocations: 283.6 kB / 0.6044 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.163, allocations: 171.5 kB / 0.6045 GB, free: 348 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.1632, allocations: 145.3 kB / 0.6047 GB, free: 196 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.2874/0.4505, allocations: 0.8194 MB / 0.6055 GB, free: 35.56 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4506, allocations: 0 / 0.6055 GB, free: 35.56 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.916e-06/0.4506, allocations: 3.438 kB / 0.6055 GB, free: 35.56 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.72e-05/0.4507, allocations: 1.406 kB / 0.6055 GB, free: 35.56 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.002395/0.4531, allocations: 0.9689 MB / 0.6064 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.4531, allocations: 11.41 kB / 0.6064 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002845/0.4534, allocations: 111.4 kB / 0.6066 GB, free: 34.85 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003657/0.4538, allocations: 92.75 kB / 0.6066 GB, free: 34.81 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.4547, allocations: 468.3 kB / 0.6071 GB, free: 34.56 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.4548, allocations: 91.39 kB / 0.6072 GB, free: 34.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.455, allocations: 63.91 kB / 0.6072 GB, free: 34.53 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.4566, allocations: 0.7862 MB / 0.608 GB, free: 34.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.4567, allocations: 3.906 kB / 0.608 GB, free: 34.44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.81e-05/0.4567, allocations: 23.34 kB / 0.608 GB, free: 34.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.4568, allocations: 14.66 kB / 0.608 GB, free: 34.44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.4586, allocations: 0.7929 MB / 0.6088 GB, free: 34.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004067/0.4626, allocations: 2.743 MB / 0.6115 GB, free: 33.26 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.4641, allocations: 0.6917 MB / 0.6122 GB, free: 33.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004766/0.4646, allocations: 0.5217 MB / 0.6127 GB, free: 32.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.4647, allocations: 41.06 kB / 0.6127 GB, free: 32.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 3.016e-06/0.4647, allocations: 0.6562 kB / 0.6127 GB, free: 32.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.008366/0.473, allocations: 2.432 MB / 0.6151 GB, free: 32.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.4731, allocations: 140.9 kB / 0.6152 GB, free: 32.03 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006691/0.4738, allocations: 469.4 kB / 0.6157 GB, free: 31.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.923e-05/0.4739, allocations: 39.02 kB / 0.6157 GB, free: 31.88 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.4741, allocations: 317.9 kB / 0.616 GB, free: 31.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.4743, allocations: 199.1 kB / 0.6162 GB, free: 31.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.4744, allocations: 13.38 kB / 0.6162 GB, free: 31.58 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4745, allocations: 368.4 kB / 0.6166 GB, free: 31.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006936/0.4752, allocations: 300.4 kB / 0.6169 GB, free: 31.26 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007362/0.4759, allocations: 396.7 kB / 0.6172 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007878/0.4767, allocations: 375.5 kB / 0.6176 GB, free: 31.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4767, allocations: 7.953 kB / 0.6176 GB, free: 31.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.004135/0.4809, allocations: 1.361 MB / 0.6189 GB, free: 30.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.481, allocations: 66.62 kB / 0.619 GB, free: 30.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004037/0.485, allocations: 1.303 MB / 0.6203 GB, free: 30.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009328/0.486, allocations: 332.7 kB / 0.6206 GB, free: 30.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.4866, allocations: 115.2 kB / 0.6207 GB, free: 30.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007306/0.4939, allocations: 2.964 MB / 0.6236 GB, free: 29.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.4945, allocations: 80.06 kB / 0.6237 GB, free: 29.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.121e-05/0.4946, allocations: 30.12 kB / 0.6237 GB, free: 29.4 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.0005357/0.4952, allocations: 298.8 kB / 0.624 GB, free: 29.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.4953, allocations: 54.41 kB / 0.624 GB, free: 29.22 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.4995, allocations: 1.396 MB / 0.6254 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.4995, allocations: 7.547 kB / 0.6254 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.4995, allocations: 0 / 0.6254 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.4995, allocations: 6.297 kB / 0.6254 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008846/0.5004, allocations: 0.7483 MB / 0.6261 GB, free: 28.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003812/0.5042, allocations: 1.279 MB / 0.6274 GB, free: 28.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.5047, allocations: 90.3 kB / 0.6275 GB, free: 28.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007689/0.5055, allocations: 325.6 kB / 0.6278 GB, free: 28.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/0.5055, allocations: 23.11 kB / 0.6278 GB, free: 28.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.5125, allocations: 2.969 MB / 0.6307 GB, free: 27.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5125, allocations: 0 / 0.6307 GB, free: 27.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.5173, allocations: 1.906 MB / 0.6326 GB, free: 26.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.5177, allocations: 236.4 kB / 0.6328 GB, free: 26.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.5178, allocations: 12.7 kB / 0.6328 GB, free: 26.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.5182, allocations: 35.03 kB / 0.6328 GB, free: 26.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.5184, allocations: 67.06 kB / 0.6329 GB, free: 26.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.231e-05/0.5185, allocations: 21.05 kB / 0.6329 GB, free: 26.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003734/0.5189, allocations: 335.7 kB / 0.6332 GB, free: 26.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5189, allocations: 0 / 0.6332 GB, free: 26.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007183/0.5196, allocations: 224.7 kB / 0.6335 GB, free: 26.3 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.005984/0.5256, allocations: 2.871 MB / 0.6363 GB, free: 25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002367/0.528, allocations: 1.124 MB / 0.6374 GB, free: 24.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.528, allocations: 0.9844 kB / 0.6374 GB, free: 24.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.5294, allocations: 0.7066 MB / 0.638 GB, free: 24.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.5299, allocations: 75.22 kB / 0.6381 GB, free: 24.05 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.5333, allocations: 3.313 MB / 0.6414 GB, free: 21.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.5338, allocations: 0.9478 MB / 0.6423 GB, free: 20.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004322/0.5343, allocations: 126.8 kB / 0.6424 GB, free: 20.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.5346, allocations: 235.2 kB / 0.6426 GB, free: 20.71 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.5346, allocations: 0 / 0.6426 GB, free: 20.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04032/0.5749, allocations: 15.73 MB / 0.658 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.5751, allocations: 279.8 kB / 0.6583 GB, free: 17.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.659, allocations: 4 kB / 0.6583 GB, free: 17.95 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: