Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009658/0.0009658, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.035/1.035, allocations: 177.1 MB / 204.2 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.893/1.893, allocations: 377.8 MB / 0.6236 GB, free: 8.574 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.835e-06/2.835e-06, allocations: 0 / 0.8115 GB, free: 1.789 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.147e-05/3.43e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.785 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0017/0.001734, allocations: 0.6819 MB / 0.8122 GB, free: 1.125 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.003012, allocations: 1.113 MB / 0.8133 GB, free: 16 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.003066, allocations: 1.531 kB / 0.8133 GB, free: 16 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.037e-05/0.003106, allocations: 3.938 kB / 0.8133 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.565e-05/0.003182, allocations: 4 kB / 0.8133 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.0035, allocations: 47.62 kB / 0.8133 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.003591, allocations: 53.53 kB / 0.8134 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.003701, allocations: 11.98 kB / 0.8134 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.344e-05/0.003784, allocations: 27.92 kB / 0.8134 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.916e-05/0.003833, allocations: 19.95 kB / 0.8134 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.00385, allocations: 5.344 kB / 0.8134 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.003919, allocations: 19.94 kB / 0.8135 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.003938, allocations: 7.984 kB / 0.8135 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.003969, allocations: 15.98 kB / 0.8135 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.004106, allocations: 57.33 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.004109, allocations: 0 / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.132e-06/0.00411, allocations: 4 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.004116, allocations: 0 / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004492/0.004565, allocations: 377.2 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.00461, allocations: 12.03 kB / 0.8139 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.004732, allocations: 9.422 kB / 0.8139 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.004843, allocations: 118.2 kB / 0.814 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.00486, allocations: 4.359 kB / 0.814 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.004877, allocations: 4.375 kB / 0.814 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.005034, allocations: 66.88 kB / 0.8141 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.005046, allocations: 0.8438 kB / 0.8141 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.005058, allocations: 4.375 kB / 0.8141 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.005069, allocations: 5.578 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.501e-05/0.005104, allocations: 7.938 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003842/0.005488, allocations: 280.9 kB / 0.8144 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.854e-05/0.005587, allocations: 50.92 kB / 0.8144 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.518e-05/0.005612, allocations: 17.05 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.005633, allocations: 0 / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.976e-05/0.005713, allocations: 61.12 kB / 0.8145 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.005714, allocations: 0 / 0.8145 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001829/0.005897, allocations: 83.31 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.005934, allocations: 51.41 kB / 0.8146 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.936e-05/0.006023, allocations: 178 kB / 0.8148 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.006038, allocations: 29.7 kB / 0.8148 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.00609, allocations: 132.7 kB / 0.815 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.00611, allocations: 15.84 kB / 0.815 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.006153, allocations: 31.36 kB / 0.815 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.006277, allocations: 496.1 kB / 0.8155 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.642e-05/0.006303, allocations: 11.98 kB / 0.8155 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-05/0.006348, allocations: 59.17 kB / 0.8155 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.603e-05/0.006424, allocations: 68.69 kB / 0.8156 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.006427, allocations: 0 / 0.8156 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001275/0.006554, allocations: 87.53 kB / 0.8157 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.006571, allocations: 10.12 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.006576, allocations: 0 / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.006596, allocations: 4 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.006698, allocations: 16.69 kB / 0.8157 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.006705, allocations: 4.484 kB / 0.8157 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.342e-05/0.006738, allocations: 12 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.006748, allocations: 5.906 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.051e-05/0.006828, allocations: 160.6 kB / 0.8159 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.006844, allocations: 11.89 kB / 0.8159 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.006978, allocations: 74.05 kB / 0.816 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.00698, allocations: 2.406 kB / 0.816 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.006985, allocations: 0 / 0.816 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.006989, allocations: 0 / 0.816 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.007243, allocations: 313.4 kB / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.007245, allocations: 0 / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.595e-05/0.007281, allocations: 15.92 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.007284, allocations: 1.156 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.007292, allocations: 4 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.007294, allocations: 3.938 kB / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.007295, allocations: 0 / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001659/0.007461, allocations: 216.4 kB / 0.8165 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.335e-05/0.007474, allocations: 12.7 kB / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.007491, allocations: 0 / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.959e-05/0.00753, allocations: 4.844 kB / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.007569, allocations: 7.984 kB / 0.8165 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.007577, allocations: 7.562 kB / 0.8165 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.123e-05/0.007618, allocations: 123.2 kB / 0.8167 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007618, allocations: 0 / 0.8167 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001752/0.007793, allocations: 12 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.007925, allocations: 111.2 kB / 0.8168 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001096/0.008035, allocations: 39.8 kB / 0.8168 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.008037, allocations: 0 / 0.8168 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.749e-05/0.008074, allocations: 33.77 kB / 0.8169 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.008275, allocations: 7.938 kB / 0.8169 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.008764, allocations: 143.2 kB / 0.817 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.883e-05/0.008803, allocations: 67.2 kB / 0.8171 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.314e-05/0.008826, allocations: 1.125 kB / 0.8171 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.008853, allocations: 12.5 kB / 0.8171 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of SimCode: time 6.61e-07/0.008854, allocations: 4.969 kB / 0.8171 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of Templates: time 0.002764/0.01162, allocations: 0.8559 MB / 0.8179 GB, free: 10.91 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.402866373304278]