Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule",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.005722/0.005722, allocations: 102 kB / 15.73 MB, free: 5.562 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.001236/0.001236, allocations: 195.7 kB / 16.68 MB, free: 5.492 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002084/0.002084, allocations: 294.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9343/0.9343, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 95.84 kB / 0.681 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4811/0.4829, allocations: 86.97 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule): time 0.002861/0.4858, allocations: 1.484 MB / 0.7673 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001545/0.4874, allocations: 1.107 MB / 0.7684 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.023e-05/0.4875, allocations: 0 / 0.7684 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.4877, allocations: 27.84 kB / 0.7684 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001746/0.4879, allocations: 35.78 kB / 0.7685 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.4881, allocations: 58.67 kB / 0.7685 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.4883, allocations: 151.6 kB / 0.7687 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.4884, allocations: 64.88 kB / 0.7687 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.34e-05/0.4885, allocations: 79.72 kB / 0.7688 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.4887, allocations: 51.75 kB / 0.7689 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.4887, allocations: 12 kB / 0.7689 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.701e-05/0.4888, allocations: 24 kB / 0.7689 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.278e-05/0.4889, allocations: 55.81 kB / 0.769 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.3e-05/0.489, allocations: 75.52 kB / 0.769 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.4893, allocations: 200.5 kB / 0.7692 GB, free: 476 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.4893, allocations: 4 kB / 0.7692 GB, free: 472 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4893, allocations: 0 / 0.7692 GB, free: 472 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.4893, allocations: 0 / 0.7692 GB, free: 472 kB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007629/0.4901, allocations: 0.4945 MB / 0.7697 GB, free: 15.92 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4901, allocations: 8.031 kB / 0.7697 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.634e-05/0.4902, allocations: 42.73 kB / 0.7698 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.4902, allocations: 16.84 kB / 0.7698 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.4906, allocations: 261 kB / 0.77 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.4908, allocations: 119.4 kB / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.4908, allocations: 8.375 kB / 0.7701 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.4912, allocations: 165.4 kB / 0.7703 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4912, allocations: 0 / 0.7703 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.4912, allocations: 4 kB / 0.7703 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.823e-05/0.4913, allocations: 7.984 kB / 0.7703 GB, free: 15.22 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.294e-05/0.4914, allocations: 47.92 kB / 0.7704 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.4925, allocations: 464.4 kB / 0.7708 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.491e-05/0.4926, allocations: 34.52 kB / 0.7708 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.089e-05/0.4926, allocations: 28.83 kB / 0.7709 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.4927, allocations: 4.156 kB / 0.7709 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.4927, allocations: 38.56 kB / 0.7709 GB, free: 14.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.4927, allocations: 0 / 0.7709 GB, free: 14.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0002754/0.493, allocations: 105.5 kB / 0.771 GB, free: 14.44 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.493, allocations: 55.34 kB / 0.7711 GB, free: 14.37 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.4933, allocations: 215.9 kB / 0.7713 GB, free: 14.15 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.4933, allocations: 29.7 kB / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.329e-05/0.4934, allocations: 124 kB / 0.7714 GB, free: 13.99 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.4934, allocations: 27.8 kB / 0.7714 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.4935, allocations: 37.64 kB / 0.7715 GB, free: 13.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4936, allocations: 326.8 kB / 0.7718 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.198e-05/0.4936, allocations: 27.97 kB / 0.7718 GB, free: 13.56 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.4938, allocations: 94.3 kB / 0.7719 GB, free: 13.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.4939, allocations: 142.1 kB / 0.772 GB, free: 13.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4939, allocations: 3.984 kB / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002242/0.4942, allocations: 153.3 kB / 0.7722 GB, free: 13.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.4942, allocations: 8 kB / 0.7722 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.4942, allocations: 0 / 0.7722 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.4942, allocations: 4 kB / 0.7722 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-05/0.4943, allocations: 27.98 kB / 0.7722 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.4943, allocations: 11.88 kB / 0.7722 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.4944, allocations: 12.27 kB / 0.7722 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.4944, allocations: 12 kB / 0.7723 GB, free: 13.02 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001156/0.4946, allocations: 142.5 kB / 0.7724 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-05/0.4946, allocations: 15.91 kB / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.4948, allocations: 119.1 kB / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4949, allocations: 0 / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4949, allocations: 7.922 kB / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.4949, allocations: 0 / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002284/0.4951, allocations: 229.5 kB / 0.7727 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4951, allocations: 8 kB / 0.7728 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.487e-05/0.4952, allocations: 11.98 kB / 0.7728 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-06/0.4952, allocations: 7.938 kB / 0.7728 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.4952, allocations: 0 / 0.7728 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.4952, allocations: 0 / 0.7728 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4952, allocations: 7.875 kB / 0.7728 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.4954, allocations: 191.8 kB / 0.773 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.4955, allocations: 93 kB / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.4955, allocations: 4 kB / 0.7731 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.4957, allocations: 19.98 kB / 0.7731 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.2e-05/0.4958, allocations: 7.922 kB / 0.7731 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.4958, allocations: 19.98 kB / 0.7731 GB, free: 12.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001404/0.4959, allocations: 162.1 kB / 0.7733 GB, free: 11.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4959, allocations: 0 / 0.7733 GB, free: 11.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002934/0.4962, allocations: 31.94 kB / 0.7733 GB, free: 11.87 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005945/0.4968, allocations: 0.7478 MB / 0.774 GB, free: 11.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.497, allocations: 71.84 kB / 0.7741 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.497, allocations: 0 / 0.7741 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.051e-05/0.4971, allocations: 27.98 kB / 0.7741 GB, free: 11 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.4974, allocations: 26.27 kB / 0.7741 GB, free: 10.98 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.4993, allocations: 1.917 MB / 0.776 GB, free: 8.91 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.4996, allocations: 0.7314 MB / 0.7767 GB, free: 8.152 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001173/0.4997, allocations: 52.89 kB / 0.7768 GB, free: 8.102 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/0.4998, allocations: 51.41 kB / 0.7768 GB, free: 8.051 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4998, allocations: 0 / 0.7768 GB, free: 8.051 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.5222, allocations: 4.243 MB / 0.781 GB, free: 3.965 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/8.147, allocations: 7.734 kB / 0.781 GB, free: 3.957 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule_res.csv --start-time -10000 --stop-time 1e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 404 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule.pipe 2>&1)