Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Sources.Examples.DayType.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_11_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_11_Buildings_Controls_Sources_Examples_DayType",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.001586/0.001586, allocations: 112.5 kB / 15.73 MB, free: 76 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.001595/0.001595, allocations: 190.3 kB / 16.67 MB, free: 6.57 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: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.819/2.819, allocations: 469.8 MB / 0.7425 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 63.91 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.289, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002535/0.2915, allocations: 1.433 MB / 1.222 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006097/0.2922, allocations: 279.1 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.2922, allocations: 0 / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.2923, allocations: 11.88 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.784e-05/0.2924, allocations: 23.78 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.2928, allocations: 87.84 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003032/0.2931, allocations: 236 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.58e-05/0.2931, allocations: 9.109 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.759e-05/0.2932, allocations: 83.81 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.2934, allocations: 103.7 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.836e-05/0.2935, allocations: 16 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.727e-05/0.2935, allocations: 16 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.2936, allocations: 87.72 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2937, allocations: 111.4 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.294, allocations: 258.9 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2941, allocations: 0 / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2941, allocations: 0 / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.2941, allocations: 0 / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.000991/0.2951, allocations: 0.7016 MB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2951, allocations: 12.03 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.101e-05/0.2952, allocations: 50.73 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.048e-05/0.2952, allocations: 24.8 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.2956, allocations: 274.9 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.2956, allocations: 12.66 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.2957, allocations: 16.38 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000653/0.2963, allocations: 463.2 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2963, allocations: 7.922 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.2964, allocations: 11.98 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.2964, allocations: 4 kB / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.2968, allocations: 323.7 kB / 1.225 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.2975, allocations: 0.5625 MB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.2989, allocations: 1.029 MB / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008537/0.2998, allocations: 0.6554 MB / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.2998, allocations: 11.92 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007032/0.3005, allocations: 470.5 kB / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/0.3005, allocations: 4 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of matching and sorting (n=37): time 0.001633/0.3022, allocations: 1.113 MB / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.515e-05/0.3023, allocations: 148.5 kB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.3025, allocations: 256.9 kB / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.3026, allocations: 33.7 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.3027, allocations: 129.1 kB / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.3028, allocations: 87.44 kB / 1.229 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.303, allocations: 110.1 kB / 1.229 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3031, allocations: 342.8 kB / 1.229 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004609/0.3036, allocations: 328.8 kB / 1.23 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005194/0.3041, allocations: 426.5 kB / 1.23 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.3052, allocations: 0.7712 MB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3052, allocations: 0 / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001154/0.3063, allocations: 0.8266 MB / 1.232 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3064, allocations: 11.94 kB / 1.232 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3064, allocations: 4 kB / 1.232 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3064, allocations: 8.125 kB / 1.232 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.3066, allocations: 39.91 kB / 1.232 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.3066, allocations: 15.98 kB / 1.232 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002545/0.3069, allocations: 27.84 kB / 1.232 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003285/0.3072, allocations: 271.5 kB / 1.232 GB, free: 1.672 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0002231/0.3074, allocations: 190 kB / 1.232 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.939e-05/0.3075, allocations: 35.73 kB / 1.232 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.3076, allocations: 38.12 kB / 1.232 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3076, allocations: 8 kB / 1.232 GB, free: 1.395 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3076, allocations: 4 kB / 1.232 GB, free: 1.391 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3076, allocations: 3.984 kB / 1.232 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.3099, allocations: 1.72 MB / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3099, allocations: 0 / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.762e-05/0.3099, allocations: 15.92 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.3099, allocations: 7.984 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.31, allocations: 19.98 kB / 1.234 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.31, allocations: 8 kB / 1.234 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.31, allocations: 0 / 1.234 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.3112, allocations: 1.123 MB / 1.235 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.719e-05/0.3113, allocations: 112.9 kB / 1.235 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.833e-05/0.3114, allocations: 12.12 kB / 1.235 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.3117, allocations: 8 kB / 1.235 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3118, allocations: 51.94 kB / 1.235 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003318/0.3121, allocations: 279.3 kB / 1.236 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001722/0.3123, allocations: 172.5 kB / 1.236 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3123, allocations: 4 kB / 1.236 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004829/0.3128, allocations: 60 kB / 1.236 GB, free: 13.71 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001623/0.3144, allocations: 1.698 MB / 1.237 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.3155, allocations: 0.7456 MB / 1.238 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3155, allocations: 3.938 kB / 1.238 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005613/0.3161, allocations: 404 kB / 1.239 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.3179, allocations: 372.4 kB / 1.239 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.3239, allocations: 5.235 MB / 1.244 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.3243, allocations: 0.7569 MB / 1.245 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003174/0.3247, allocations: 86.94 kB / 1.245 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.3249, allocations: 123.3 kB / 1.245 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.3249, allocations: 3.938 kB / 1.245 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5221/0.847, allocations: 11.48 MB / 1.256 GB, free: 30.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/9.002, allocations: 14.28 kB / 1.256 GB, free: 30.18 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_11_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_11_Buildings.Controls.Sources.Examples.DayType.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.Sources.Examples.DayType_res.csv --start-time -1.8144e+06 --stop-time 1.8144e+06 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1451.52 Buildings_11_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_11_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)