Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.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.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_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.591/2.591, allocations: 287.3 MB / 302.3 MB, free: 8.277 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.001675/0.001675, allocations: 178.9 kB / 370.8 MB, free: 10.86 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.219/2.219, allocations: 205.4 MB / 0.6295 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001172, allocations: 101.9 kB / 0.7428 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007527/0.0007528, allocations: 20.75 kB / 0.8657 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2394, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9092/1.149, allocations: 137.4 MB / 1.113 GB, free: 15.36 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/1.149, allocations: 64.75 kB / 1.113 GB, free: 15.36 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0886/1.237, allocations: 22.26 MB / 1.134 GB, free: 28.05 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.545e-06/1.238, allocations: 0 / 1.134 GB, free: 28.05 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.947e-05/1.238, allocations: 3.719 kB / 1.134 GB, free: 28.05 MB / 0.698 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.001415/1.239, allocations: 0.6442 MB / 1.135 GB, free: 27.42 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/1.239, allocations: 15.48 kB / 1.135 GB, free: 27.42 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.66e-05/1.239, allocations: 45.55 kB / 1.135 GB, free: 27.38 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.02e-05/1.239, allocations: 31.11 kB / 1.135 GB, free: 27.36 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/1.24, allocations: 258.2 kB / 1.135 GB, free: 27.12 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/1.24, allocations: 11.91 kB / 1.135 GB, free: 27.12 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/1.24, allocations: 18.56 kB / 1.135 GB, free: 27.12 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007552/1.241, allocations: 461.8 kB / 1.136 GB, free: 26.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/1.241, allocations: 0 / 1.136 GB, free: 26.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/1.241, allocations: 3.969 kB / 1.136 GB, free: 26.96 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/1.241, allocations: 3.906 kB / 1.136 GB, free: 26.96 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005231/1.241, allocations: 325.9 kB / 1.136 GB, free: 26.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007789/1.242, allocations: 0.5552 MB / 1.137 GB, free: 26.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/1.244, allocations: 1.039 MB / 1.138 GB, free: 26.34 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/1.244, allocations: 3.875 kB / 1.138 GB, free: 26.34 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000747/1.244, allocations: 480.6 kB / 1.138 GB, free: 26.16 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 3.527e-06/1.244, allocations: 0 / 1.138 GB, free: 26.16 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001977/1.246, allocations: 1.115 MB / 1.139 GB, free: 25.94 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.247, allocations: 139.2 kB / 1.139 GB, free: 25.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/1.247, allocations: 232.7 kB / 1.14 GB, free: 25.64 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.203e-05/1.247, allocations: 40.78 kB / 1.14 GB, free: 25.61 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/1.247, allocations: 124.2 kB / 1.14 GB, free: 25.52 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.848e-05/1.247, allocations: 69.28 kB / 1.14 GB, free: 25.48 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/1.247, allocations: 10.5 kB / 1.14 GB, free: 25.48 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001668/1.247, allocations: 344.3 kB / 1.14 GB, free: 25.16 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005306/1.248, allocations: 330 kB / 1.14 GB, free: 25.11 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005735/1.249, allocations: 419.6 kB / 1.141 GB, free: 24.95 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006128/1.249, allocations: 368.6 kB / 1.141 GB, free: 24.89 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/1.249, allocations: 0 / 1.141 GB, free: 24.89 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001429/1.251, allocations: 0.8246 MB / 1.142 GB, free: 24.71 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/1.251, allocations: 7.594 kB / 1.142 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.549e-06/1.251, allocations: 3.812 kB / 1.142 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/1.251, allocations: 3.875 kB / 1.142 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/1.251, allocations: 49.58 kB / 1.142 GB, free: 24.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/1.251, allocations: 4 kB / 1.142 GB, free: 24.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/1.251, allocations: 14.31 kB / 1.142 GB, free: 24.68 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/1.252, allocations: 218.8 kB / 1.142 GB, free: 24.57 MB / 0.698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003111/1.252, allocations: 196.9 kB / 1.142 GB, free: 24.43 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.929e-05/1.252, allocations: 27.19 kB / 1.142 GB, free: 24.41 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.311e-05/1.252, allocations: 38.59 kB / 1.143 GB, free: 24.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/1.252, allocations: 11.55 kB / 1.143 GB, free: 24.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/1.252, allocations: 0 / 1.143 GB, free: 24.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.252, allocations: 4 kB / 1.143 GB, free: 24.39 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/1.255, allocations: 1.702 MB / 1.144 GB, free: 23.63 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/1.255, allocations: 3.844 kB / 1.144 GB, free: 23.63 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/1.255, allocations: 26.94 kB / 1.144 GB, free: 23.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/1.255, allocations: 3.969 kB / 1.144 GB, free: 23.61 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/1.255, allocations: 18.48 kB / 1.144 GB, free: 23.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/1.255, allocations: 7.922 kB / 1.144 GB, free: 23.61 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.255, allocations: 0 / 1.144 GB, free: 23.61 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/1.257, allocations: 1.143 MB / 1.145 GB, free: 23.07 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.751e-05/1.257, allocations: 104.3 kB / 1.145 GB, free: 22.95 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/1.257, allocations: 10.41 kB / 1.145 GB, free: 22.95 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/1.257, allocations: 11.33 kB / 1.145 GB, free: 22.95 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/1.257, allocations: 49.5 kB / 1.146 GB, free: 22.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003236/1.258, allocations: 227.2 kB / 1.146 GB, free: 22.82 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002206/1.258, allocations: 168.2 kB / 1.146 GB, free: 22.73 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.258, allocations: 0 / 1.146 GB, free: 22.73 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006706/1.259, allocations: 67.08 kB / 1.146 GB, free: 22.72 MB / 0.698 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 (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.002056/1.261, allocations: 1.949 MB / 1.148 GB, free: 21.43 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001287/1.262, allocations: 0.7328 MB / 1.149 GB, free: 21.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.262, allocations: 3.938 kB / 1.149 GB, free: 21.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007101/1.263, allocations: 408.5 kB / 1.149 GB, free: 21.23 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/1.265, allocations: 377.7 kB / 1.149 GB, free: 21.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/1.268, allocations: 2.962 MB / 1.152 GB, free: 18.74 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/1.269, allocations: 0.7582 MB / 1.153 GB, free: 18.01 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005106/1.269, allocations: 100.7 kB / 1.153 GB, free: 17.96 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/1.269, allocations: 120.5 kB / 1.153 GB, free: 17.93 MB / 0.698 GB Notification: Performance of SimCode: time 1.343e-06/1.269, allocations: 7.812 kB / 1.153 GB, free: 17.93 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/1.307, allocations: 10.53 MB / 1.163 GB, free: 9.695 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002822/1.307, allocations: 179.6 kB / 1.164 GB, free: 9.457 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.746/4.053, allocations: 0 / 1.164 GB, free: 9.457 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)