Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.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.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario,fileNamePrefix="BuildSysPro_BuildSysPro_BoundaryConditions_Scenarios_Examples_ComparisonDHWScenario",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario,fileNamePrefix="BuildSysPro_BuildSysPro_BoundaryConditions_Scenarios_Examples_ComparisonDHWScenario",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.001177/0.001178, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009106/0.0009107, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.8585/0.8585, allocations: 143 MB / 433.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001179, allocations: 71.84 kB / 0.5143 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1321, allocations: 82.05 MB / 0.5944 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario): time 0.004215/0.1363, allocations: 3.039 MB / 0.5974 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002811/0.1392, allocations: 1.959 MB / 0.5993 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003343/0.1395, allocations: 11.94 kB / 0.5993 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003604/0.1399, allocations: 87.12 kB / 0.5994 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005673/0.1405, allocations: 182.9 kB / 0.5995 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007491/0.1413, allocations: 377.8 kB / 0.5999 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007017/0.142, allocations: 0.621 MB / 0.6005 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004236/0.1424, allocations: 279.9 kB / 0.6008 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.1427, allocations: 223 kB / 0.601 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004662/0.1431, allocations: 273.2 kB / 0.6012 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1433, allocations: 56 kB / 0.6013 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.1435, allocations: 116 kB / 0.6014 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.1436, allocations: 151.5 kB / 0.6015 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.1439, allocations: 274.4 kB / 0.6018 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.1445, allocations: 0.6853 MB / 0.6025 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1446, allocations: 0 / 0.6025 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1446, allocations: 0 / 0.6025 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.755e-05/0.1446, allocations: 0 / 0.6025 GB, free: 1.176 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001359/0.146, allocations: 0.8616 MB / 0.6033 GB, free: 272 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.146, allocations: 12.02 kB / 0.6033 GB, free: 260 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.209e-05/0.1461, allocations: 74.72 kB / 0.6034 GB, free: 176 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003047/0.1464, allocations: 72.12 kB / 0.6035 GB, free: 104 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.237/0.3835, allocations: 467 kB / 0.6039 GB, free: 44.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.3835, allocations: 28.25 kB / 0.6039 GB, free: 44.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.167e-05/0.3836, allocations: 36.12 kB / 0.604 GB, free: 44.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.3842, allocations: 418.8 kB / 0.6044 GB, free: 44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.3843, allocations: 1.922 kB / 0.6044 GB, free: 44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.3843, allocations: 17.56 kB / 0.6044 GB, free: 44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3843, allocations: 9.469 kB / 0.6044 GB, free: 44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.3848, allocations: 314.2 kB / 0.6047 GB, free: 44 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3862, allocations: 1.227 MB / 0.6059 GB, free: 43.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.3866, allocations: 328.2 kB / 0.6062 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.3868, allocations: 115 kB / 0.6063 GB, free: 43.53 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.3868, allocations: 10.17 kB / 0.6063 GB, free: 43.53 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.3868, allocations: 42.02 kB / 0.6064 GB, free: 43.49 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.225e-06/0.3869, allocations: 0 / 0.6064 GB, free: 43.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.0006675/0.3875, allocations: 395.9 kB / 0.6068 GB, free: 43.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.3876, allocations: 198.8 kB / 0.6069 GB, free: 43.21 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.3881, allocations: 0.5549 MB / 0.6075 GB, free: 43.08 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.3882, allocations: 31.33 kB / 0.6075 GB, free: 43.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3883, allocations: 264.9 kB / 0.6078 GB, free: 42.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/0.3884, allocations: 100.1 kB / 0.6079 GB, free: 42.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.501e-05/0.3884, allocations: 61.28 kB / 0.6079 GB, free: 42.85 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.3885, allocations: 364.4 kB / 0.6083 GB, free: 42.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.3887, allocations: 104.6 kB / 0.6084 GB, free: 42.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.3888, allocations: 154.3 kB / 0.6085 GB, free: 42.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.3891, allocations: 232 kB / 0.6087 GB, free: 42.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3891, allocations: 2.781 kB / 0.6087 GB, free: 42.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004262/0.3896, allocations: 320.4 kB / 0.609 GB, free: 42.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3896, allocations: 5.781 kB / 0.6091 GB, free: 42.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3896, allocations: 0 / 0.6091 GB, free: 42.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3896, allocations: 6.062 kB / 0.6091 GB, free: 42.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.3898, allocations: 58.02 kB / 0.6091 GB, free: 42.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3898, allocations: 7.094 kB / 0.6091 GB, free: 42.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.39, allocations: 37.2 kB / 0.6092 GB, free: 42.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.39, allocations: 12.22 kB / 0.6092 GB, free: 42.13 MB / 0.4981 GB Warning: Assuming fixed start value for the following 2 variables: scenarioAutre.Conso:VARIABLE(flow=false fixed = true ) "Consumption en L" type: Real scenarioRT.ConsoECS:VARIABLE(flow=false fixed = true ) "Hot water consumption at 40°C [L]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (scenarioRT.booleanToReal.u,scenarioRT.greaterThreshold3.y,scenarioRT.greaterThreshold2.y,scenarioRT.greaterThreshold1.y,scenarioRT.greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.3903, allocations: 194.9 kB / 0.6094 GB, free: 41.97 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.3904, allocations: 61.02 kB / 0.6094 GB, free: 41.94 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004895/0.3909, allocations: 342.1 kB / 0.6097 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3909, allocations: 10.16 kB / 0.6097 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3909, allocations: 0 / 0.6097 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3909, allocations: 2.812 kB / 0.6097 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004568/0.3913, allocations: 0.5166 MB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.3914, allocations: 6.641 kB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.3916, allocations: 52.14 kB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.3916, allocations: 0 / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.3916, allocations: 10.38 kB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.3916, allocations: 10.81 kB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3916, allocations: 0.6562 kB / 0.6103 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.3922, allocations: 0.6166 MB / 0.6109 GB, free: 41.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/0.3923, allocations: 126.1 kB / 0.6111 GB, free: 40.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3924, allocations: 7.641 kB / 0.6111 GB, free: 40.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3926, allocations: 29.53 kB / 0.6111 GB, free: 40.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.3927, allocations: 25.94 kB / 0.6111 GB, free: 40.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3927, allocations: 9.312 kB / 0.6111 GB, free: 40.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003704/0.393, allocations: 408 kB / 0.6115 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3931, allocations: 0 / 0.6115 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003795/0.3934, allocations: 100 kB / 0.6116 GB, free: 40.71 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (scenarioRT.ConsoECS,scenarioAutre.Conso) * Number of discrete variables: 5 (scenarioRT.greaterThreshold.y,scenarioRT.greaterThreshold1.y,scenarioRT.greaterThreshold2.y,scenarioRT.greaterThreshold3.y,scenarioRT.booleanToReal.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001458/0.3949, allocations: 1.465 MB / 0.613 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004523/0.3954, allocations: 269.4 kB / 0.6133 GB, free: 39.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3954, allocations: 0 / 0.6133 GB, free: 39.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.3956, allocations: 142.3 kB / 0.6134 GB, free: 39.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.3961, allocations: 87.19 kB / 0.6135 GB, free: 39.62 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.3998, allocations: 3.898 MB / 0.6173 GB, free: 37.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.4001, allocations: 0.8598 MB / 0.6182 GB, free: 36.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002176/0.4003, allocations: 96.67 kB / 0.6183 GB, free: 36.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.4005, allocations: 202.4 kB / 0.6184 GB, free: 36.38 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.4005, allocations: 0 / 0.6184 GB, free: 36.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.4337, allocations: 9.404 MB / 0.6276 GB, free: 35.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/7.297, allocations: 10.33 kB / 0.6276 GB, free: 35.3 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.pipe ; mkfifo BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.pipe >> ../files/BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 600 BuildSysPro_BuildSysPro_BoundaryConditions_Scenarios_Examples_ComparisonDHWScenario.fmu > BuildSysPro_BuildSysPro.BoundaryConditions.Scenarios.Examples.ComparisonDHWScenario.pipe 2>&1)