Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_10_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.001419/0.001419, allocations: 108 kB / 15.6 MB, free: 132 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.001608/0.001608, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 0.8693 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5127/0.5139, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00242/0.5164, allocations: 1.417 MB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005832/0.517, allocations: 279.1 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.82e-05/0.5171, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.5172, allocations: 15.81 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.215e-05/0.5172, allocations: 19.84 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.5176, allocations: 91.78 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.5178, allocations: 228 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.5179, allocations: 17.11 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.485e-05/0.518, allocations: 83.81 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.5181, allocations: 107.7 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.5182, allocations: 16 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 4.049e-05/0.5182, allocations: 16 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.565e-05/0.5183, allocations: 91.66 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.5184, allocations: 99.39 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.5187, allocations: 249.5 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5187, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5187, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.5187, allocations: 4 kB / 1.02 GB, free: 15.77 MB / 0.7794 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.0008501/0.5195, allocations: 0.694 MB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5196, allocations: 12.03 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.5196, allocations: 46.73 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.5197, allocations: 24.66 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.52, allocations: 274.7 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.52, allocations: 16.66 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.5201, allocations: 16.38 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.5206, allocations: 459.3 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.5206, allocations: 7.875 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.5207, allocations: 8 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.5207, allocations: 7.938 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003741/0.521, allocations: 319.8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005505/0.5216, allocations: 0.5662 MB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.5227, allocations: 1.029 MB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.5234, allocations: 0.6593 MB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.5235, allocations: 4 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005554/0.524, allocations: 486.2 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=37): time 1.744e-06/0.524, allocations: 0 / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=37): time 0.001354/0.5254, allocations: 1.112 MB / 1.026 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.5255, allocations: 140.5 kB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.5257, allocations: 257 kB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.5258, allocations: 37.7 kB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.5258, allocations: 129 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.5259, allocations: 78.94 kB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.526, allocations: 110.1 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5262, allocations: 342.8 kB / 1.027 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.5265, allocations: 332.7 kB / 1.027 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004336/0.527, allocations: 422.9 kB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008248/0.5278, allocations: 0.7728 MB / 1.028 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5278, allocations: 0 / 1.028 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009963/0.5288, allocations: 0.8249 MB / 1.029 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.5289, allocations: 15.92 kB / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.5289, allocations: 7.938 kB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.5289, allocations: 4 kB / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.529, allocations: 39.91 kB / 1.029 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.5291, allocations: 8.062 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.5293, allocations: 31.73 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002956/0.5296, allocations: 267.6 kB / 1.029 GB, free: 5.859 MB / 0.7794 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.0001863/0.5298, allocations: 197.9 kB / 1.029 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.5299, allocations: 31.56 kB / 1.03 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.916e-05/0.5299, allocations: 42.16 kB / 1.03 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.53, allocations: 11.94 kB / 1.03 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.53, allocations: 0 / 1.03 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.53, allocations: 3.984 kB / 1.03 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/0.5319, allocations: 1.711 MB / 1.031 GB, free: 3.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.5319, allocations: 0 / 1.031 GB, free: 3.801 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.116e-05/0.5319, allocations: 23.91 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.5319, allocations: 4 kB / 1.031 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.532, allocations: 23.97 kB / 1.031 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.532, allocations: 4 kB / 1.031 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.532, allocations: 7.875 kB / 1.031 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.533, allocations: 1.113 MB / 1.032 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.052e-05/0.5331, allocations: 104.7 kB / 1.032 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.5332, allocations: 15.98 kB / 1.033 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.5334, allocations: 8 kB / 1.033 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.95e-05/0.5335, allocations: 51.94 kB / 1.033 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002777/0.5338, allocations: 283.5 kB / 1.033 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001397/0.534, allocations: 180.4 kB / 1.033 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.534, allocations: 0 / 1.033 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004694/0.5344, allocations: 56 kB / 1.033 GB, free: 1.906 MB / 0.7794 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.001449/0.5359, allocations: 1.693 MB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009814/0.5369, allocations: 0.7776 MB / 1.035 GB, free: 15.41 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5369, allocations: 4 kB / 1.035 GB, free: 15.4 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.5374, allocations: 403.9 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.5391, allocations: 375.1 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/0.5441, allocations: 5.222 MB / 1.041 GB, free: 9.289 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.5444, allocations: 0.7644 MB / 1.042 GB, free: 8.504 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002452/0.5447, allocations: 90.92 kB / 1.042 GB, free: 8.414 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.5448, allocations: 123.4 kB / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.5448, allocations: 0 / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3618/0.9066, allocations: 11.4 MB / 1.053 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/11.15, allocations: 11.94 kB / 1.053 GB, free: 13.05 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_10_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)