Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.512/1.512, allocations: 249.3 MB / 261.8 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 178.2 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.82/1.82, allocations: 205.2 MB / 0.572 GB, free: 10.72 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 86.55 kB / 0.6764 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.636e-05/4.647e-05, allocations: 0 / 0.788 GB, free: 97.03 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.231, allocations: 106.3 MB / 0.8919 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7481/0.9791, allocations: 132.2 MB / 1.021 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.9794, allocations: 77.36 kB / 1.021 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.04836/1.028, allocations: 18.83 MB / 1.039 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of FrontEnd: time 4.068e-06/1.028, allocations: 0 / 1.039 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.962e-05/1.028, allocations: 11.94 kB / 1.039 GB, free: 2.961 MB / 0.6511 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.0009457/1.029, allocations: 0.5877 MB / 1.04 GB, free: 2.316 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/1.029, allocations: 11.97 kB / 1.04 GB, free: 2.305 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.431e-05/1.029, allocations: 57.92 kB / 1.04 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.023e-05/1.029, allocations: 31.58 kB / 1.04 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/1.029, allocations: 247.9 kB / 1.04 GB, free: 1.949 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/1.029, allocations: 14.78 kB / 1.04 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/1.029, allocations: 19.73 kB / 1.04 GB, free: 1.926 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/1.03, allocations: 447.6 kB / 1.041 GB, free: 1.547 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/1.03, allocations: 3.938 kB / 1.041 GB, free: 1.543 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/1.03, allocations: 7.297 kB / 1.041 GB, free: 1.539 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/1.03, allocations: 4 kB / 1.041 GB, free: 1.535 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/1.031, allocations: 320.5 kB / 1.041 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006987/1.031, allocations: 0.5552 MB / 1.042 GB, free: 0.7422 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/1.032, allocations: 1.026 MB / 1.043 GB, free: 15.84 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007054/1.033, allocations: 0.6504 MB / 1.043 GB, free: 15.3 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/1.033, allocations: 11.94 kB / 1.043 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/1.034, allocations: 480.6 kB / 1.044 GB, free: 14.87 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 1.603e-06/1.034, allocations: 0 / 1.044 GB, free: 14.87 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001079/1.035, allocations: 0.7884 MB / 1.045 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.422e-05/1.035, allocations: 140.5 kB / 1.045 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/1.035, allocations: 230.9 kB / 1.045 GB, free: 13.83 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/1.035, allocations: 37.02 kB / 1.045 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/1.035, allocations: 120.3 kB / 1.045 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 7.401e-05/1.035, allocations: 72.12 kB / 1.045 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/1.035, allocations: 10.38 kB / 1.045 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001402/1.036, allocations: 348 kB / 1.045 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/1.036, allocations: 322.5 kB / 1.046 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/1.036, allocations: 424.6 kB / 1.046 GB, free: 12.66 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/1.037, allocations: 352.8 kB / 1.047 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.037, allocations: 0 / 1.047 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009991/1.038, allocations: 0.8225 MB / 1.047 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.038, allocations: 8 kB / 1.047 GB, free: 11.68 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/1.038, allocations: 8.188 kB / 1.047 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/1.038, allocations: 8 kB / 1.047 GB, free: 11.66 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/1.038, allocations: 47.27 kB / 1.047 GB, free: 11.62 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/1.038, allocations: 4 kB / 1.047 GB, free: 11.62 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/1.038, allocations: 22.56 kB / 1.047 GB, free: 11.6 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/1.039, allocations: 211 kB / 1.048 GB, free: 11.4 MB / 0.6667 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 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,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],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001558/1.039, allocations: 153.8 kB / 1.048 GB, free: 11.26 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/1.039, allocations: 31.89 kB / 1.048 GB, free: 11.23 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/1.039, allocations: 33.53 kB / 1.048 GB, free: 11.21 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/1.039, allocations: 15.98 kB / 1.048 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.039, allocations: 0 / 1.048 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/1.039, allocations: 3.984 kB / 1.048 GB, free: 11.19 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/1.041, allocations: 1.702 MB / 1.05 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/1.041, allocations: 0 / 1.05 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.445e-05/1.041, allocations: 19.92 kB / 1.05 GB, free: 9.629 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/1.041, allocations: 0 / 1.05 GB, free: 9.629 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/1.041, allocations: 22.53 kB / 1.05 GB, free: 9.613 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.041, allocations: 4 kB / 1.05 GB, free: 9.609 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.041, allocations: 3.938 kB / 1.05 GB, free: 9.605 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/1.042, allocations: 1.141 MB / 1.051 GB, free: 8.559 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/1.042, allocations: 104.7 kB / 1.051 GB, free: 8.438 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/1.042, allocations: 15 kB / 1.051 GB, free: 8.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/1.043, allocations: 7.562 kB / 1.051 GB, free: 8.426 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.676e-05/1.043, allocations: 54.17 kB / 1.051 GB, free: 8.387 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002707/1.043, allocations: 223 kB / 1.051 GB, free: 8.172 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001437/1.043, allocations: 166 kB / 1.051 GB, free: 8.027 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/1.043, allocations: 0 / 1.051 GB, free: 8.027 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004522/1.044, allocations: 66.73 kB / 1.051 GB, free: 7.973 MB / 0.6667 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001441/1.045, allocations: 1.945 MB / 1.053 GB, free: 6.129 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008822/1.046, allocations: 0.7307 MB / 1.054 GB, free: 5.52 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.046, allocations: 0 / 1.054 GB, free: 5.52 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004733/1.046, allocations: 403.6 kB / 1.054 GB, free: 5.191 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/1.048, allocations: 322.4 kB / 1.055 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/1.049, allocations: 0.9265 MB / 1.056 GB, free: 4.082 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/1.05, allocations: 0.7567 MB / 1.056 GB, free: 3.305 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002631/1.05, allocations: 102.9 kB / 1.056 GB, free: 3.203 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/1.05, allocations: 115.8 kB / 1.056 GB, free: 3.141 MB / 0.6667 GB Notification: Performance of SimCode: time 4.4e-07/1.05, allocations: 0 / 1.056 GB, free: 3.141 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/1.073, allocations: 10.41 MB / 1.067 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/1.073, allocations: 162.8 kB / 1.067 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/3.039, allocations: 0 / 1.067 GB, free: 8.684 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)