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: translateModel(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled") translateModel(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009519/0.0009519, allocations: 99.55 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.0009294/0.0009295, allocations: 177.3 kB / 15.95 MB, free: 216 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.332/1.332, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9817/0.9817, allocations: 143.3 MB / 434.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.000316, allocations: 4 kB / 0.5158 GB, free: 11.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1633, allocations: 83.4 MB / 0.5973 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.002902/0.1663, allocations: 2.631 MB / 0.5998 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002939/0.1692, allocations: 2.376 MB / 0.6021 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1694, allocations: 11.94 kB / 0.6022 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.1697, allocations: 71.47 kB / 0.6022 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003598/0.17, allocations: 175.4 kB / 0.6024 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.1708, allocations: 378.3 kB / 0.6027 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005244/0.1713, allocations: 499.6 kB / 0.6032 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.1716, allocations: 260.8 kB / 0.6035 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002605/0.1719, allocations: 255.1 kB / 0.6037 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.1723, allocations: 294 kB / 0.604 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.459e-05/0.1724, allocations: 32 kB / 0.604 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004045/0.1728, allocations: 279.6 kB / 0.6043 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001838/0.173, allocations: 175.4 kB / 0.6045 GB, free: 448 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1731, allocations: 145.3 kB / 0.6046 GB, free: 296 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.2812/0.4543, allocations: 0.8277 MB / 0.6054 GB, free: 35.97 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.4544, allocations: 0 / 0.6054 GB, free: 35.97 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4544, allocations: 0.5938 kB / 0.6054 GB, free: 35.97 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.307e-05/0.4544, allocations: 0.7812 kB / 0.6054 GB, free: 35.97 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.001609/0.456, allocations: 0.9644 MB / 0.6064 GB, free: 35.3 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.4561, allocations: 13.52 kB / 0.6064 GB, free: 35.3 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.4563, allocations: 90.97 kB / 0.6065 GB, free: 35.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.4569, allocations: 473.5 kB / 0.6069 GB, free: 35.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.457, allocations: 88.64 kB / 0.607 GB, free: 34.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.239e-05/0.4571, allocations: 61.45 kB / 0.607 GB, free: 34.98 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.4585, allocations: 0.7898 MB / 0.6078 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.4585, allocations: 1 kB / 0.6078 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.457e-05/0.4586, allocations: 22.72 kB / 0.6078 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.4586, allocations: 15.94 kB / 0.6079 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.4602, allocations: 0.7948 MB / 0.6086 GB, free: 34.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/0.4634, allocations: 2.739 MB / 0.6113 GB, free: 33.71 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.4648, allocations: 0.7045 MB / 0.612 GB, free: 33.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004598/0.4653, allocations: 0.5173 MB / 0.6125 GB, free: 33.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.4653, allocations: 36.91 kB / 0.6125 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 3.136e-06/0.4653, allocations: 4.562 kB / 0.6125 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.008223/0.4735, allocations: 2.434 MB / 0.6149 GB, free: 32.63 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.4736, allocations: 137.8 kB / 0.615 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004335/0.474, allocations: 471.3 kB / 0.6155 GB, free: 32.36 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.4741, allocations: 37.45 kB / 0.6155 GB, free: 32.33 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.4742, allocations: 311 kB / 0.6158 GB, free: 32.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4744, allocations: 200.8 kB / 0.616 GB, free: 32.03 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.4744, allocations: 9.781 kB / 0.616 GB, free: 32.03 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.4745, allocations: 367.9 kB / 0.6164 GB, free: 31.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006895/0.4752, allocations: 301.6 kB / 0.6167 GB, free: 31.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007/0.4759, allocations: 400 kB / 0.6171 GB, free: 31.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006877/0.4766, allocations: 374.9 kB / 0.6174 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4766, allocations: 0 / 0.6174 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003992/0.4806, allocations: 1.368 MB / 0.6187 GB, free: 31.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.4807, allocations: 61.41 kB / 0.6188 GB, free: 31.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004013/0.4847, allocations: 1.308 MB / 0.6201 GB, free: 31.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008695/0.4856, allocations: 332.5 kB / 0.6204 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.4861, allocations: 114 kB / 0.6205 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.4934, allocations: 2.971 MB / 0.6234 GB, free: 29.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.494, allocations: 71.09 kB / 0.6235 GB, free: 29.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.494, allocations: 31.66 kB / 0.6235 GB, free: 29.85 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.0004844/0.4945, allocations: 301.7 kB / 0.6238 GB, free: 29.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.4946, allocations: 61.44 kB / 0.6239 GB, free: 29.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.4986, allocations: 1.393 MB / 0.6252 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.4987, allocations: 7.25 kB / 0.6252 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.4987, allocations: 7.016 kB / 0.6252 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.4987, allocations: 3.375 kB / 0.6252 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007947/0.4995, allocations: 0.7429 MB / 0.626 GB, free: 29.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003769/0.5033, allocations: 1.28 MB / 0.6272 GB, free: 29.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004065/0.5037, allocations: 90.47 kB / 0.6273 GB, free: 29.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000758/0.5044, allocations: 325.3 kB / 0.6276 GB, free: 29.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.5045, allocations: 23.42 kB / 0.6276 GB, free: 29.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007027/0.5115, allocations: 2.969 MB / 0.6305 GB, free: 27.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5116, allocations: 7.219 kB / 0.6305 GB, free: 27.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004749/0.5163, allocations: 1.904 MB / 0.6324 GB, free: 26.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.5166, allocations: 229.8 kB / 0.6326 GB, free: 26.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.235e-05/0.5167, allocations: 15.66 kB / 0.6326 GB, free: 26.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/0.5172, allocations: 41.44 kB / 0.6327 GB, free: 26.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.5173, allocations: 63.5 kB / 0.6327 GB, free: 26.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.5174, allocations: 21.5 kB / 0.6327 GB, free: 26.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003843/0.5178, allocations: 330.5 kB / 0.6331 GB, free: 26.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5178, allocations: 0 / 0.6331 GB, free: 26.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007983/0.5186, allocations: 225.9 kB / 0.6333 GB, free: 26.47 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.001118/0.5197, allocations: 0.5148 MB / 0.6338 GB, free: 26.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002353/0.5221, allocations: 1.132 MB / 0.6349 GB, free: 25.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5221, allocations: 0 / 0.6349 GB, free: 25.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.5235, allocations: 0.706 MB / 0.6356 GB, free: 25.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.5241, allocations: 66.28 kB / 0.6356 GB, free: 25.35 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.5277, allocations: 1.798 MB / 0.6374 GB, free: 24.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006435/0.5283, allocations: 0.9407 MB / 0.6383 GB, free: 23.63 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005524/0.5289, allocations: 127.7 kB / 0.6384 GB, free: 23.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.5291, allocations: 56.25 kB / 0.6385 GB, free: 23.6 MB / 0.4981 GB Notification: Performance of SimCode: time 8.21e-07/0.5291, allocations: 1.406 kB / 0.6385 GB, free: 23.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.02675/0.5559, allocations: 10.43 MB / 0.6487 GB, free: 22.87 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.makefile Environment - environmentSimulation: (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 & ./BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.pipe 2>&1) Environment - environmentSimulation: