Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001147/0.001147, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001128/0.001128, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.9586/0.9586, allocations: 177.1 MB / 203.4 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.087/2.087, allocations: 429.5 MB / 0.6732 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 0.8782 GB, free: 5.188 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.159e-05/2.396e-05, allocations: 6.25 kB / 0.8782 GB, free: 5.18 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001806/0.00183, allocations: 0.6712 MB / 0.8788 GB, free: 4.531 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.003209, allocations: 1.127 MB / 0.8799 GB, free: 3.395 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.072e-05/0.00326, allocations: 0 / 0.8799 GB, free: 3.395 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 3.641e-05/0.003296, allocations: 3.938 kB / 0.8799 GB, free: 3.391 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.003378, allocations: 4.703 kB / 0.8799 GB, free: 3.387 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.003739, allocations: 43.77 kB / 0.88 GB, free: 3.344 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.003848, allocations: 52.8 kB / 0.88 GB, free: 3.293 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 9.952e-05/0.003948, allocations: 7.984 kB / 0.88 GB, free: 3.285 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 8.903e-05/0.004037, allocations: 33.03 kB / 0.8801 GB, free: 3.254 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.004089, allocations: 15.97 kB / 0.8801 GB, free: 3.238 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.00411, allocations: 4 kB / 0.8801 GB, free: 3.234 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.642e-05/0.004186, allocations: 21 kB / 0.8801 GB, free: 3.215 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.004212, allocations: 15.91 kB / 0.8801 GB, free: 3.199 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 3.562e-05/0.004248, allocations: 12 kB / 0.8801 GB, free: 3.188 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.004399, allocations: 56.83 kB / 0.8802 GB, free: 3.133 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.004402, allocations: 0 / 0.8802 GB, free: 3.133 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004403, allocations: 0 / 0.8802 GB, free: 3.133 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.00441, allocations: 0.9688 kB / 0.8802 GB, free: 3.133 MB / 0.7917 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.0005205/0.00493, allocations: 388.5 kB / 0.8805 GB, free: 2.715 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.004971, allocations: 12.59 kB / 0.8806 GB, free: 2.703 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.005081, allocations: 4.938 kB / 0.8806 GB, free: 2.699 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.314e-05/0.005174, allocations: 121.1 kB / 0.8807 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.005187, allocations: 3.812 kB / 0.8807 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.005201, allocations: 8.359 kB / 0.8807 GB, free: 2.547 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.005351, allocations: 66.88 kB / 0.8808 GB, free: 2.473 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.005361, allocations: 192 / 0.8808 GB, free: 2.473 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.005374, allocations: 8.344 kB / 0.8808 GB, free: 2.465 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.005383, allocations: 4.375 kB / 0.8808 GB, free: 2.461 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.816e-05/0.005431, allocations: 15.92 kB / 0.8808 GB, free: 2.445 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/0.005863, allocations: 271.8 kB / 0.881 GB, free: 2.145 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.005964, allocations: 43.5 kB / 0.8811 GB, free: 2.09 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.108e-05/0.005995, allocations: 16.27 kB / 0.8811 GB, free: 2.07 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.006013, allocations: 5 kB / 0.8811 GB, free: 2.066 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.852e-05/0.006102, allocations: 65.12 kB / 0.8812 GB, free: 1.988 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.006103, allocations: 0 / 0.8812 GB, free: 1.988 MB / 0.7917 GB Notification: Performance of matching and sorting (n=6): time 0.0002154/0.006318, allocations: 78.28 kB / 0.8812 GB, free: 1.906 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.006364, allocations: 60.22 kB / 0.8813 GB, free: 1.836 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.006467, allocations: 165.9 kB / 0.8815 GB, free: 1.656 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.006482, allocations: 25.7 kB / 0.8815 GB, free: 1.625 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.006543, allocations: 136 kB / 0.8816 GB, free: 1.488 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.006566, allocations: 11.91 kB / 0.8816 GB, free: 1.477 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.006612, allocations: 31.36 kB / 0.8816 GB, free: 1.438 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0002549/0.006867, allocations: 0.4899 MB / 0.8821 GB, free: 0.9375 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.343e-05/0.0069, allocations: 11.94 kB / 0.8821 GB, free: 0.9258 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.766e-05/0.006958, allocations: 50.42 kB / 0.8822 GB, free: 0.8555 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.479e-05/0.007053, allocations: 72.09 kB / 0.8823 GB, free: 0.7656 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.007056, allocations: 4 kB / 0.8823 GB, free: 0.7617 MB / 0.7917 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001444/0.0072, allocations: 81.5 kB / 0.8823 GB, free: 0.6758 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.007218, allocations: 11.94 kB / 0.8823 GB, free: 0.6641 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.007224, allocations: 0 / 0.8823 GB, free: 0.6641 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.00724, allocations: 4 kB / 0.8824 GB, free: 0.6602 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.007345, allocations: 23.92 kB / 0.8824 GB, free: 0.6367 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.007351, allocations: 0 / 0.8824 GB, free: 0.6367 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.206e-05/0.007394, allocations: 7.938 kB / 0.8824 GB, free: 0.6289 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.007404, allocations: 8.156 kB / 0.8824 GB, free: 0.6211 MB / 0.7917 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 9.569e-05/0.0075, allocations: 160.6 kB / 0.8825 GB, free: 464 kB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.007516, allocations: 11.89 kB / 0.8826 GB, free: 452 kB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.007653, allocations: 70.05 kB / 0.8826 GB, free: 376 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.007655, allocations: 4 kB / 0.8826 GB, free: 372 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.007659, allocations: 0 / 0.8826 GB, free: 372 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.007663, allocations: 0 / 0.8826 GB, free: 372 kB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.007919, allocations: 317.5 kB / 0.8829 GB, free: 12 kB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.007921, allocations: 384 / 0.8829 GB, free: 12 kB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.98e-05/0.007961, allocations: 7.984 kB / 0.8829 GB, free: 4 kB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.007963, allocations: 8.047 kB / 0.8829 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.007974, allocations: 11.94 kB / 0.883 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.007976, allocations: 0 / 0.883 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.007977, allocations: 0 / 0.883 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.008121, allocations: 219.8 kB / 0.8832 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.008133, allocations: 7.953 kB / 0.8832 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.008151, allocations: 0 / 0.8832 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.689e-05/0.008208, allocations: 0 / 0.8832 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.00825, allocations: 11.98 kB / 0.8832 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.008256, allocations: 0 / 0.8832 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.518e-05/0.008301, allocations: 127.2 kB / 0.8833 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.01e-07/0.008301, allocations: 4 kB / 0.8833 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002808/0.008582, allocations: 19.92 kB / 0.8833 GB, free: 15.58 MB / 0.8073 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.0001235/0.008706, allocations: 103.2 kB / 0.8834 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001267/0.008832, allocations: 43.73 kB / 0.8835 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.008834, allocations: 0 / 0.8835 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.316e-05/0.008877, allocations: 23.67 kB / 0.8835 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.009152, allocations: 11.88 kB / 0.8835 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005433/0.009696, allocations: 150.6 kB / 0.8836 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.687e-05/0.009743, allocations: 60.91 kB / 0.8837 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.004e-05/0.009773, allocations: 4 kB / 0.8837 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.009805, allocations: 12.5 kB / 0.8837 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of SimCode: time 5.51e-07/0.009806, allocations: 0 / 0.8837 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of Templates: time 0.00315/0.01296, allocations: 0.9129 MB / 0.8846 GB, free: 14.23 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.186692959163338]