Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.722/2.722, allocations: 284.9 MB / 292.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 184.9 kB / 360.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.2 MB / 0.6191 GB, free: 12.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 93.53 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.04e-05, allocations: 0 / 0.8508 GB, free: 3.359 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.8647, allocations: 115.3 MB / 0.9634 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/1.105, allocations: 137.7 MB / 1.098 GB, free: 2.766 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/1.105, allocations: 71.95 kB / 1.098 GB, free: 2.695 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0906/1.196, allocations: 18.73 MB / 1.116 GB, free: 56 kB / 0.7136 GB Notification: Performance of FrontEnd: time 1.764e-06/1.196, allocations: 0 / 1.116 GB, free: 56 kB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.143e-05/1.196, allocations: 4.594 kB / 1.116 GB, free: 52 kB / 0.7136 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.001735/1.197, allocations: 0.6047 MB / 1.117 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.136e-05/1.197, allocations: 12.03 kB / 1.117 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/1.198, allocations: 24.34 kB / 1.117 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006396/1.198, allocations: 250.5 kB / 1.117 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/1.198, allocations: 8.5 kB / 1.117 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/1.198, allocations: 13.31 kB / 1.117 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009016/1.199, allocations: 306.7 kB / 1.117 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/1.201, allocations: 435.3 kB / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/1.201, allocations: 0 / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/1.201, allocations: 7.938 kB / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/1.201, allocations: 11.8 kB / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/1.202, allocations: 0.5179 MB / 1.118 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/1.205, allocations: 1.002 MB / 1.119 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/1.207, allocations: 0.6425 MB / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.448e-05/1.207, allocations: 11.98 kB / 1.12 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/1.208, allocations: 458.2 kB / 1.12 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 4.479e-06/1.208, allocations: 0 / 1.12 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.002611/1.211, allocations: 0.7603 MB / 1.121 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.953e-05/1.211, allocations: 144.5 kB / 1.121 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/1.212, allocations: 220.4 kB / 1.121 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/1.212, allocations: 29.7 kB / 1.122 GB, free: 10.36 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/1.212, allocations: 124.9 kB / 1.122 GB, free: 10.23 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/1.212, allocations: 74.53 kB / 1.122 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/1.212, allocations: 7.938 kB / 1.122 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001501/1.212, allocations: 338.8 kB / 1.122 GB, free: 9.809 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/1.213, allocations: 320.7 kB / 1.122 GB, free: 9.496 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006714/1.213, allocations: 401.6 kB / 1.123 GB, free: 9.07 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006846/1.214, allocations: 360.7 kB / 1.123 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/1.214, allocations: 0 / 1.123 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001618/1.216, allocations: 0.789 MB / 1.124 GB, free: 7.926 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/1.216, allocations: 8 kB / 1.124 GB, free: 7.918 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/1.216, allocations: 8.125 kB / 1.124 GB, free: 7.91 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/1.216, allocations: 7.938 kB / 1.124 GB, free: 7.902 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/1.216, allocations: 39.91 kB / 1.124 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/1.216, allocations: 9.656 kB / 1.124 GB, free: 7.855 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/1.216, allocations: 11.92 kB / 1.124 GB, free: 7.844 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004113/1.217, allocations: 211.2 kB / 1.124 GB, free: 7.641 MB / 0.7292 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.0001991/1.217, allocations: 141.9 kB / 1.124 GB, free: 7.492 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001503/1.219, allocations: 0.7685 MB / 1.125 GB, free: 6.719 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/1.219, allocations: 31.66 kB / 1.125 GB, free: 6.688 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/1.219, allocations: 33.95 kB / 1.125 GB, free: 6.656 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/1.219, allocations: 4.281 kB / 1.125 GB, free: 6.652 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.219, allocations: 0 / 1.125 GB, free: 6.652 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/1.219, allocations: 0 / 1.125 GB, free: 6.652 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/1.222, allocations: 1.65 MB / 1.127 GB, free: 4.957 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.222, allocations: 0 / 1.127 GB, free: 4.957 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/1.222, allocations: 23.91 kB / 1.127 GB, free: 4.934 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-05/1.222, allocations: 4 kB / 1.127 GB, free: 4.93 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/1.222, allocations: 19.97 kB / 1.127 GB, free: 4.91 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/1.222, allocations: 4 kB / 1.127 GB, free: 4.906 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.222, allocations: 4 kB / 1.127 GB, free: 4.902 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/1.224, allocations: 1.115 MB / 1.128 GB, free: 3.75 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/1.224, allocations: 108.6 kB / 1.128 GB, free: 3.625 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.219e-05/1.224, allocations: 8 kB / 1.128 GB, free: 3.617 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/1.224, allocations: 10.3 kB / 1.128 GB, free: 3.609 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.225, allocations: 47.94 kB / 1.128 GB, free: 3.562 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004222/1.225, allocations: 225.5 kB / 1.128 GB, free: 3.344 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002218/1.225, allocations: 160.5 kB / 1.128 GB, free: 3.184 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.1e-07/1.225, allocations: 0 / 1.128 GB, free: 3.184 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007106/1.226, allocations: 59.66 kB / 1.128 GB, free: 3.129 MB / 0.7292 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.002153/1.228, allocations: 1.907 MB / 1.13 GB, free: 1.184 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001422/1.23, allocations: 0.7104 MB / 1.131 GB, free: 484 kB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.23, allocations: 0 / 1.131 GB, free: 484 kB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0007902/1.23, allocations: 399.9 kB / 1.131 GB, free: 84 kB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/1.233, allocations: 306.1 kB / 1.132 GB, free: 15.8 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/1.235, allocations: 0.8954 MB / 1.133 GB, free: 14.86 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/1.236, allocations: 0.7608 MB / 1.133 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0004892/1.236, allocations: 97.16 kB / 1.133 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/1.236, allocations: 123.3 kB / 1.133 GB, free: 13.87 MB / 0.7448 GB Notification: Performance of SimCode: time 1.123e-06/1.236, allocations: 0 / 1.133 GB, free: 13.87 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05708/1.294, allocations: 9.757 MB / 1.143 GB, free: 4.297 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003148/1.294, allocations: 126.5 kB / 1.143 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/4.05, allocations: 0 / 1.143 GB, free: 4.109 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)