Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_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.001762/0.001762, 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.002314/0.002314, allocations: 193.1 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.735/2.735, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 63.41 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2861, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002449/0.2885, allocations: 1.421 MB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006242/0.2892, allocations: 276.9 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.55e-05/0.2893, allocations: 4 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.2894, allocations: 19.8 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.143e-05/0.2895, allocations: 15.88 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.2898, allocations: 91.77 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.29, allocations: 228 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.139e-05/0.2901, allocations: 9.125 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.823e-05/0.2902, allocations: 83.81 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.2903, allocations: 107.6 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.2904, allocations: 20 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.95e-05/0.2904, allocations: 16 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.2906, allocations: 87.72 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2907, allocations: 107.4 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.2909, allocations: 247.4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2909, allocations: 4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2909, allocations: 0 / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.687e-06/0.291, allocations: 0 / 1.066 GB, free: 11.8 MB / 0.8262 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.0008893/0.2918, allocations: 0.694 MB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2919, allocations: 8.031 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.2919, allocations: 50.73 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.614e-05/0.292, allocations: 28.56 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.2923, allocations: 258.9 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.2923, allocations: 12.66 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.2924, allocations: 20.38 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005522/0.2929, allocations: 463.3 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.293, allocations: 7.875 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.293, allocations: 15.92 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.293, allocations: 4 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.2934, allocations: 319.7 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.2939, allocations: 0.5662 MB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.2951, allocations: 1.021 MB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007212/0.2958, allocations: 0.6593 MB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.2958, allocations: 12.14 kB / 1.07 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005743/0.2964, allocations: 490 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/0.2964, allocations: 3.938 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001428/0.2979, allocations: 1.111 MB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.298, allocations: 140.5 kB / 1.072 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.2982, allocations: 248.8 kB / 1.072 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.2982, allocations: 37.7 kB / 1.072 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.576e-05/0.2983, allocations: 129.1 kB / 1.072 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.814e-05/0.2984, allocations: 79.14 kB / 1.072 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.2986, allocations: 110.1 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2987, allocations: 346.8 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.2991, allocations: 328.8 kB / 1.073 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.2996, allocations: 426.5 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008195/0.3004, allocations: 0.7658 MB / 1.074 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3004, allocations: 7.938 kB / 1.074 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009588/0.3014, allocations: 0.8249 MB / 1.075 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3014, allocations: 15.97 kB / 1.075 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3014, allocations: 0 / 1.075 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.3014, allocations: 8 kB / 1.075 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.3016, allocations: 43.89 kB / 1.075 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3016, allocations: 4 kB / 1.075 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.3019, allocations: 35.62 kB / 1.075 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002898/0.3022, allocations: 271.5 kB / 1.076 GB, free: 1.891 MB / 0.8262 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.000181/0.3024, allocations: 185.7 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.3024, allocations: 31.64 kB / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.763e-05/0.3025, allocations: 38.47 kB / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3025, allocations: 4 kB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3025, allocations: 3.984 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3025, allocations: 7.984 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.3044, allocations: 1.716 MB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3044, allocations: 8 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.136e-05/0.3044, allocations: 19.97 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3044, allocations: 4 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.3045, allocations: 15.98 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3045, allocations: 7.922 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3045, allocations: 4 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009795/0.3055, allocations: 1.119 MB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.3055, allocations: 104.8 kB / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.3056, allocations: 12.12 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.3059, allocations: 11.98 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.88e-05/0.306, allocations: 51.89 kB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002644/0.3062, allocations: 279.3 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001357/0.3064, allocations: 172.5 kB / 1.079 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3064, allocations: 4 kB / 1.079 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004602/0.3069, allocations: 64 kB / 1.079 GB, free: 13.95 MB / 0.8419 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.001316/0.3082, allocations: 1.708 MB / 1.081 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009014/0.3091, allocations: 0.7623 MB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3091, allocations: 0 / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000485/0.3096, allocations: 413.7 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.3113, allocations: 382.4 kB / 1.082 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005039/0.3163, allocations: 5.209 MB / 1.088 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.3166, allocations: 0.753 MB / 1.088 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002572/0.3169, allocations: 90.92 kB / 1.088 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.3171, allocations: 123.3 kB / 1.089 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3171, allocations: 0 / 1.089 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.3445, allocations: 11.4 MB / 1.1 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/7.817, allocations: 5.188 kB / 1.1 GB, free: 9.105 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.csv --start-time -1.8144e+06 --stop-time 1.8144e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1451.52 Buildings_latest_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)