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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.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.001799/0.001799, 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.002199/0.002199, allocations: 190.7 kB / 16.66 MB, free: 6.582 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.4/1.4, 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-master/package.mo): time 2.791/2.791, allocations: 469.4 MB / 0.7421 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.11 kB / 1.064 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2819, allocations: 159.1 MB / 1.22 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.004926/0.2869, allocations: 1.439 MB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.288, allocations: 267.2 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.052e-05/0.2881, allocations: 7.938 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.2884, allocations: 11.86 kB / 1.221 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.2885, allocations: 23.86 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005972/0.2891, allocations: 83.78 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.2896, allocations: 239.9 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.104e-05/0.2897, allocations: 13.11 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.2899, allocations: 83.81 kB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.2902, allocations: 103.7 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.708e-05/0.2903, allocations: 16 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.276e-05/0.2904, allocations: 16 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.2906, allocations: 91.72 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.2908, allocations: 99.39 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.2913, allocations: 262.9 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2913, allocations: 4 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.674e-06/0.2913, allocations: 0 / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.2913, allocations: 0 / 1.222 GB, free: 11.98 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.001569/0.2929, allocations: 0.7032 MB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/0.293, allocations: 12.03 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.318e-05/0.2931, allocations: 50.73 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2932, allocations: 24.8 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005532/0.2938, allocations: 270.9 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.061e-05/0.2939, allocations: 12.66 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/0.294, allocations: 16.38 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.2951, allocations: 467.3 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.2951, allocations: 7.875 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.114e-05/0.2952, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.2952, allocations: 4 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008146/0.2961, allocations: 335.7 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.2973, allocations: 0.5547 MB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.2995, allocations: 1.037 MB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.3009, allocations: 0.6515 MB / 1.226 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.622e-05/0.3009, allocations: 7.984 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001212/0.3022, allocations: 488 kB / 1.227 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=37): time 3.397e-06/0.3022, allocations: 0 / 1.227 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=37): time 0.002616/0.3048, allocations: 1.112 MB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.3049, allocations: 140.5 kB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004036/0.3054, allocations: 252.9 kB / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.3054, allocations: 37.7 kB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3056, allocations: 125.1 kB / 1.228 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3058, allocations: 91.39 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.3061, allocations: 106.1 kB / 1.229 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.3063, allocations: 350.8 kB / 1.229 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007612/0.3071, allocations: 328.6 kB / 1.229 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008521/0.308, allocations: 426.5 kB / 1.23 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.3097, allocations: 0.7666 MB / 1.23 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.3098, allocations: 4 kB / 1.23 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002144/0.3119, allocations: 0.8289 MB / 1.231 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.312, allocations: 11.94 kB / 1.231 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.312, allocations: 128 / 1.231 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.459e-05/0.312, allocations: 12 kB / 1.231 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.3123, allocations: 35.91 kB / 1.231 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.3123, allocations: 4 kB / 1.231 GB, free: 2.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.3129, allocations: 36.39 kB / 1.231 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005485/0.3134, allocations: 267.4 kB / 1.232 GB, free: 2.062 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.0003828/0.3138, allocations: 194.4 kB / 1.232 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3139, allocations: 31.75 kB / 1.232 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.3141, allocations: 42.16 kB / 1.232 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3141, allocations: 7.938 kB / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3141, allocations: 4 kB / 1.232 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3142, allocations: 7.984 kB / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.3164, allocations: 1.708 MB / 1.234 GB, free: 4 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3164, allocations: 4.188 kB / 1.234 GB, free: 0 / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.3165, allocations: 20.14 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.3165, allocations: 4 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.3165, allocations: 31.91 kB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.3165, allocations: 0 / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3166, allocations: 4 kB / 1.234 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.3176, allocations: 1.114 MB / 1.235 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.3177, allocations: 112.8 kB / 1.235 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.3178, allocations: 12 kB / 1.235 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.318, allocations: 8 kB / 1.235 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3182, allocations: 51.88 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003024/0.3185, allocations: 287.3 kB / 1.235 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001485/0.3186, allocations: 172.5 kB / 1.235 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3186, allocations: 0 / 1.235 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005013/0.3191, allocations: 64 kB / 1.235 GB, free: 14.1 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.001418/0.3206, allocations: 1.692 MB / 1.237 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009636/0.3215, allocations: 0.7417 MB / 1.238 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3215, allocations: 0 / 1.238 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005044/0.3221, allocations: 419.6 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.3239, allocations: 373.9 kB / 1.239 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.3292, allocations: 5.227 MB / 1.244 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.3296, allocations: 0.7608 MB / 1.244 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000296/0.3299, allocations: 94.92 kB / 1.244 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3301, allocations: 115.4 kB / 1.245 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/0.3301, allocations: 3.938 kB / 1.245 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5755/0.9056, allocations: 11.48 MB / 1.256 GB, free: 30.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.262/9.167, allocations: 7.828 kB / 1.256 GB, free: 30.18 MB / 0.9981 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)