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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.416/2.416, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 176 kB / 0.4902 GB, free: 2.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.76/1.76, allocations: 223.2 MB / 0.7992 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 96.31 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004068, allocations: 7.406 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3495, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2071/0.5566, allocations: 150.7 MB / 1.376 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.557, allocations: 75.95 kB / 1.376 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04992/0.6069, allocations: 19.01 MB / 1.395 GB, free: 15.7 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.245e-06/0.607, allocations: 4 kB / 1.395 GB, free: 15.7 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.041e-05/0.607, allocations: 4 kB / 1.395 GB, free: 15.7 MB / 0.9011 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.001328/0.6083, allocations: 0.6239 MB / 1.396 GB, free: 15 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.6084, allocations: 8.562 kB / 1.396 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.6085, allocations: 39.58 kB / 1.396 GB, free: 14.95 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.609, allocations: 253.7 kB / 1.396 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.609, allocations: 12.28 kB / 1.396 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.6091, allocations: 19.98 kB / 1.396 GB, free: 14.63 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006499/0.6097, allocations: 454.7 kB / 1.396 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.6098, allocations: 0 / 1.396 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.6098, allocations: 4 kB / 1.396 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.6098, allocations: 4 kB / 1.396 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004088/0.6102, allocations: 323.8 kB / 1.397 GB, free: 13.84 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.6109, allocations: 0.5586 MB / 1.397 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.6122, allocations: 1.037 MB / 1.398 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.6122, allocations: 4.031 kB / 1.398 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.6128, allocations: 478.2 kB / 1.399 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=37): time 2.665e-06/0.6129, allocations: 4 kB / 1.399 GB, free: 11.65 MB / 0.9011 GB Notification: Performance of matching and sorting (n=37): time 0.001609/0.6145, allocations: 1.108 MB / 1.4 GB, free: 10.54 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.6146, allocations: 144.5 kB / 1.4 GB, free: 10.37 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.615, allocations: 224 kB / 1.4 GB, free: 10.14 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.409e-05/0.615, allocations: 37.7 kB / 1.4 GB, free: 10.1 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.6152, allocations: 121.1 kB / 1.4 GB, free: 9.973 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.6153, allocations: 75.06 kB / 1.4 GB, free: 9.898 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.067e-05/0.6153, allocations: 8 kB / 1.4 GB, free: 9.891 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002116/0.6155, allocations: 350.8 kB / 1.401 GB, free: 9.539 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004938/0.616, allocations: 332.6 kB / 1.401 GB, free: 9.215 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.6166, allocations: 422.5 kB / 1.401 GB, free: 8.77 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005386/0.6172, allocations: 359.8 kB / 1.402 GB, free: 8.418 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.6172, allocations: 0 / 1.402 GB, free: 8.418 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001272/0.6185, allocations: 0.8314 MB / 1.403 GB, free: 7.582 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.6185, allocations: 8 kB / 1.403 GB, free: 7.574 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.6185, allocations: 4 kB / 1.403 GB, free: 7.57 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.6186, allocations: 4 kB / 1.403 GB, free: 7.566 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.6188, allocations: 43.84 kB / 1.403 GB, free: 7.523 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.6188, allocations: 7.984 kB / 1.403 GB, free: 7.516 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.6191, allocations: 16 kB / 1.403 GB, free: 7.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003096/0.6194, allocations: 212.1 kB / 1.403 GB, free: 7.293 MB / 0.9011 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.0003025/0.6197, allocations: 194 kB / 1.403 GB, free: 7.094 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.6198, allocations: 31.56 kB / 1.403 GB, free: 7.062 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.203e-05/0.6199, allocations: 42.17 kB / 1.403 GB, free: 7.016 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.6199, allocations: 4 kB / 1.403 GB, free: 7.012 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.6199, allocations: 4 kB / 1.403 GB, free: 7.008 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.6199, allocations: 3.984 kB / 1.403 GB, free: 7.004 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.6224, allocations: 1.699 MB / 1.405 GB, free: 5.246 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.6224, allocations: 4 kB / 1.405 GB, free: 5.242 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.258e-05/0.6225, allocations: 19.91 kB / 1.405 GB, free: 5.223 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.6225, allocations: 11.88 kB / 1.405 GB, free: 5.211 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/0.6225, allocations: 23.97 kB / 1.405 GB, free: 5.188 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.6225, allocations: 0 / 1.405 GB, free: 5.188 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.6225, allocations: 4 kB / 1.405 GB, free: 5.184 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.6239, allocations: 1.142 MB / 1.406 GB, free: 4.004 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.6241, allocations: 112.7 kB / 1.406 GB, free: 3.875 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.6242, allocations: 8 kB / 1.406 GB, free: 3.867 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.6244, allocations: 8 kB / 1.406 GB, free: 3.859 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.6246, allocations: 51.94 kB / 1.406 GB, free: 3.809 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003156/0.6249, allocations: 219.7 kB / 1.406 GB, free: 3.594 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002335/0.6251, allocations: 172.5 kB / 1.407 GB, free: 3.422 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6252, allocations: 0 / 1.407 GB, free: 3.422 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006097/0.6258, allocations: 67.94 kB / 1.407 GB, free: 3.355 MB / 0.9011 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.000235/0.626, allocations: 136 kB / 1.407 GB, free: 3.215 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001179/0.6272, allocations: 0.7347 MB / 1.407 GB, free: 2.48 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6272, allocations: 0 / 1.407 GB, free: 2.48 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.6279, allocations: 407.8 kB / 1.408 GB, free: 2.082 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.6294, allocations: 306.7 kB / 1.408 GB, free: 1.793 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.631, allocations: 1.022 MB / 1.409 GB, free: 0.7383 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.6315, allocations: 0.7647 MB / 1.41 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003809/0.6319, allocations: 103.5 kB / 1.41 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.6321, allocations: 63.38 kB / 1.41 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of SimCode: time 5.71e-07/0.6321, allocations: 4 kB / 1.41 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of Templates: time 0.01592/0.648, allocations: 7.84 MB / 1.418 GB, free: 8.039 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.makefile (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 & ./Buildings_latest_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches