Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001105/0.001105, allocations: 176.9 kB / 492.3 MB, free: 0.6094 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.522/1.522, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009383/0.0009382, allocations: 90.09 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.493e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2809, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9959/1.277, allocations: 149.8 MB / 1.359 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/1.277, allocations: 75.69 kB / 1.359 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04213/1.319, allocations: 18.95 MB / 1.377 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.944e-06/1.319, allocations: 0 / 1.377 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.78e-05/1.319, allocations: 3.938 kB / 1.377 GB, free: 33.52 MB / 0.8386 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.0008017/1.32, allocations: 0.5943 MB / 1.378 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.32, allocations: 11.62 kB / 1.378 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/1.32, allocations: 29.81 kB / 1.378 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/1.321, allocations: 251.3 kB / 1.378 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/1.321, allocations: 15.47 kB / 1.378 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/1.321, allocations: 19.34 kB / 1.378 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/1.321, allocations: 449.2 kB / 1.379 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/1.321, allocations: 0 / 1.379 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/1.321, allocations: 10.19 kB / 1.379 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/1.321, allocations: 3.969 kB / 1.379 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/1.322, allocations: 318.2 kB / 1.379 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/1.322, allocations: 0.5608 MB / 1.379 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008405/1.323, allocations: 1.032 MB / 1.38 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/1.323, allocations: 0.6528 MB / 1.381 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/1.323, allocations: 7.781 kB / 1.381 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/1.324, allocations: 469.7 kB / 1.382 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 1.492e-06/1.324, allocations: 0 / 1.382 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0008179/1.325, allocations: 0.7868 MB / 1.382 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/1.325, allocations: 144.1 kB / 1.382 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/1.325, allocations: 226.3 kB / 1.383 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/1.325, allocations: 35.86 kB / 1.383 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.088e-05/1.325, allocations: 125.4 kB / 1.383 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/1.325, allocations: 82.62 kB / 1.383 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-05/1.325, allocations: 9.281 kB / 1.383 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.325, allocations: 343.8 kB / 1.383 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/1.326, allocations: 329.6 kB / 1.384 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/1.326, allocations: 417.6 kB / 1.384 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/1.326, allocations: 349.5 kB / 1.384 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.326, allocations: 4 kB / 1.384 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000763/1.327, allocations: 0.8239 MB / 1.385 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.327, allocations: 7.719 kB / 1.385 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/1.327, allocations: 0 / 1.385 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/1.327, allocations: 7.5 kB / 1.385 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/1.327, allocations: 50 kB / 1.385 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/1.327, allocations: 3.844 kB / 1.385 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/1.327, allocations: 22.8 kB / 1.385 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/1.328, allocations: 213.2 kB / 1.385 GB, free: 30.24 MB / 0.8386 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.0001157/1.328, allocations: 153.7 kB / 1.386 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/1.328, allocations: 23.66 kB / 1.386 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.151e-05/1.328, allocations: 38.2 kB / 1.386 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/1.328, allocations: 11.67 kB / 1.386 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/1.328, allocations: 0 / 1.386 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/1.328, allocations: 4 kB / 1.386 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/1.329, allocations: 1.703 MB / 1.387 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.329, allocations: 0 / 1.387 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/1.329, allocations: 26.94 kB / 1.387 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/1.33, allocations: 3.844 kB / 1.387 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/1.33, allocations: 23.22 kB / 1.387 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.33, allocations: 3.656 kB / 1.387 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.33, allocations: 0 / 1.387 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008247/1.33, allocations: 1.144 MB / 1.388 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/1.33, allocations: 104.2 kB / 1.389 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/1.33, allocations: 18.36 kB / 1.389 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/1.331, allocations: 3.75 kB / 1.389 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/1.331, allocations: 53.81 kB / 1.389 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/1.331, allocations: 222.8 kB / 1.389 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001202/1.331, allocations: 167.9 kB / 1.389 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.331, allocations: 0 / 1.389 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003995/1.332, allocations: 64.72 kB / 1.389 GB, free: 28.41 MB / 0.8386 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.000145/1.332, allocations: 130 kB / 1.389 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006852/1.332, allocations: 0.739 MB / 1.39 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.332, allocations: 0 / 1.39 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003734/1.333, allocations: 400.1 kB / 1.39 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/1.334, allocations: 319.4 kB / 1.391 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000972/1.335, allocations: 0.8691 MB / 1.391 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/1.335, allocations: 0.7577 MB / 1.392 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003013/1.336, allocations: 100.7 kB / 1.392 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/1.336, allocations: 65.47 kB / 1.392 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.336, allocations: 4 kB / 1.392 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.01109/1.347, allocations: 7.854 MB / 1.4 GB, free: 22.22 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_9_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches