Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_WeeklySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,fileNamePrefix="Buildings_latest_Buildings_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.007571/0.007571, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001988/0.001988, allocations: 196 kB / 16.68 MB, free: 5.934 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.39/1.39, 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/Buildings 12.0.0-master/package.mo): time 2.783/2.783, allocations: 482.4 MB / 0.7548 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 67.59 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 162.2 MB / 1.241 GB, free: 9.277 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.WeeklySchedule): time 0.002598/0.2756, allocations: 1.488 MB / 1.243 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.2771, allocations: 1.111 MB / 1.244 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.126e-05/0.2771, allocations: 4 kB / 1.244 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.2773, allocations: 15.84 kB / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.2774, allocations: 39.8 kB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.2776, allocations: 55.91 kB / 1.244 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.2778, allocations: 147.5 kB / 1.244 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.278, allocations: 61.09 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.727e-05/0.2781, allocations: 79.77 kB / 1.244 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.2782, allocations: 55.75 kB / 1.244 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.046e-05/0.2783, allocations: 16 kB / 1.244 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.755e-05/0.2784, allocations: 31.94 kB / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.772e-05/0.2785, allocations: 51.75 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.418e-05/0.2786, allocations: 75.58 kB / 1.245 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.2788, allocations: 199.5 kB / 1.245 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2789, allocations: 0 / 1.245 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2789, allocations: 0 / 1.245 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2789, allocations: 0 / 1.245 GB, free: 5.844 MB / 0.9669 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.0006854/0.2796, allocations: 0.4945 MB / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.2796, allocations: 8.031 kB / 1.245 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.768e-05/0.2797, allocations: 38.75 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.638e-05/0.2797, allocations: 28.78 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.28, allocations: 252 kB / 1.246 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.2802, allocations: 123.4 kB / 1.246 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.2802, allocations: 4.375 kB / 1.246 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003439/0.2806, allocations: 161.5 kB / 1.246 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.2806, allocations: 0 / 1.246 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.2806, allocations: 7.984 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.2806, allocations: 8 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.479e-05/0.2807, allocations: 47.84 kB / 1.246 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.2818, allocations: 452.5 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.168e-05/0.2818, allocations: 38.48 kB / 1.246 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.663e-05/0.2819, allocations: 28.84 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.2819, allocations: 8 kB / 1.246 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.282, allocations: 30.56 kB / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.282, allocations: 0 / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0002581/0.2822, allocations: 117.6 kB / 1.247 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.2823, allocations: 59.34 kB / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.2825, allocations: 215.8 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.2826, allocations: 29.7 kB / 1.247 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.488e-05/0.2827, allocations: 128 kB / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.2827, allocations: 27.75 kB / 1.247 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/0.2827, allocations: 29.64 kB / 1.247 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2829, allocations: 326.8 kB / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.159e-05/0.2829, allocations: 27.98 kB / 1.247 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.2831, allocations: 98.28 kB / 1.247 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.2833, allocations: 146.1 kB / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2833, allocations: 0 / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002493/0.2835, allocations: 149.6 kB / 1.248 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2835, allocations: 12.06 kB / 1.248 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2836, allocations: 4 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2836, allocations: 11.92 kB / 1.248 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.519e-05/0.2837, allocations: 19.94 kB / 1.248 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.2837, allocations: 11.92 kB / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/0.2838, allocations: 11.94 kB / 1.248 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.2838, allocations: 12 kB / 1.248 GB, free: 2.395 MB / 0.9669 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.0001266/0.2839, allocations: 137.8 kB / 1.248 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.973e-05/0.284, allocations: 23.8 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002174/0.2842, allocations: 111.5 kB / 1.248 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2842, allocations: 4 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2842, allocations: 3.938 kB / 1.248 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2842, allocations: 0 / 1.248 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.2845, allocations: 237.5 kB / 1.248 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2845, allocations: 0 / 1.248 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.174e-05/0.2846, allocations: 15.98 kB / 1.248 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2846, allocations: 0 / 1.248 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.2846, allocations: 0 / 1.248 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2846, allocations: 4 kB / 1.248 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.2846, allocations: 11.88 kB / 1.248 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.2848, allocations: 191.4 kB / 1.249 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.2849, allocations: 89.02 kB / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.2849, allocations: 0 / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.2852, allocations: 19.97 kB / 1.249 GB, free: 1.461 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.2852, allocations: 19.86 kB / 1.249 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.2852, allocations: 7.984 kB / 1.249 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001564/0.2854, allocations: 169.5 kB / 1.249 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2854, allocations: 0 / 1.249 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002995/0.2857, allocations: 31.89 kB / 1.249 GB, free: 1.238 MB / 0.9669 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.0006165/0.2863, allocations: 0.7515 MB / 1.25 GB, free: 480 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.2865, allocations: 67.84 kB / 1.25 GB, free: 412 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2865, allocations: 0 / 1.25 GB, free: 412 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.37e-05/0.2866, allocations: 24.73 kB / 1.25 GB, free: 388 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.2869, allocations: 23.94 kB / 1.25 GB, free: 364 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.2889, allocations: 1.916 MB / 1.252 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.2892, allocations: 0.7275 MB / 1.252 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001273/0.2894, allocations: 64.81 kB / 1.252 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.273e-05/0.2894, allocations: 43.42 kB / 1.252 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2894, allocations: 0 / 1.252 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03607/0.3255, allocations: 4.227 MB / 1.256 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/7.999, allocations: 11.97 kB / 1.257 GB, free: 9.32 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule_res.csv --start-time -10000 --stop-time 1e+06 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 404 Buildings_latest_Buildings_Utilities_IO_Files_Examples_WeeklySchedule.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe 2>&1)