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.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001735/0.001736, allocations: 179.6 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.749/2.749, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003744/0.0003747, allocations: 11.34 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3394, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001146/0.3406, allocations: 403.1 kB / 1.06 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00175/0.3424, allocations: 1.046 MB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.391e-05/0.3425, allocations: 0 / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.754e-05/0.3425, allocations: 7.875 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.3426, allocations: 7.984 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.343, allocations: 27.92 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.3431, allocations: 43.89 kB / 1.061 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3432, allocations: 8 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.53e-05/0.3433, allocations: 19.86 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.528e-05/0.3434, allocations: 15.92 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.3435, allocations: 8 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-05/0.3435, allocations: 15.98 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.15e-05/0.3436, allocations: 3.984 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.442e-05/0.3437, allocations: 45.56 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.3438, allocations: 35.88 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3438, allocations: 4 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3439, allocations: 0 / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.3439, allocations: 0 / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006608/0.3445, allocations: 355.6 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.3446, allocations: 12.02 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.3446, allocations: 4.938 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.3448, allocations: 168.2 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.3448, allocations: 8.375 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.3448, allocations: 384 / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.3451, allocations: 74.17 kB / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3451, allocations: 192 / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3451, allocations: 7.938 kB / 1.062 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3451, allocations: 0 / 1.062 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.3453, allocations: 47.95 kB / 1.062 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005343/0.3459, allocations: 280.9 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.3461, allocations: 50.44 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.3462, allocations: 40.92 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.3462, allocations: 0 / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.3464, allocations: 75.39 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.3464, allocations: 0 / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0004303/0.3469, allocations: 121.5 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.3469, allocations: 59.34 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.86e-05/0.347, allocations: 109.8 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.3471, allocations: 33.64 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.3471, allocations: 88.14 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.3472, allocations: 7.812 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/0.3472, allocations: 21.7 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3473, allocations: 310.8 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.3475, allocations: 27.97 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.3476, allocations: 51.42 kB / 1.063 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.3478, allocations: 95.27 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3478, allocations: 0 / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002812/0.3481, allocations: 109.7 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3481, allocations: 4 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3481, allocations: 4.453 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3482, allocations: 4 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.3483, allocations: 19.92 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.3483, allocations: 0 / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.548e-05/0.3484, allocations: 19.97 kB / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.3484, allocations: 0 / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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 0.0001013/0.3486, allocations: 121.7 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.3486, allocations: 11.91 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.3489, allocations: 101.6 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3489, allocations: 0 / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3489, allocations: 4 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3489, allocations: 7.969 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004652/0.3494, allocations: 350.5 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3494, allocations: 384 / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.324e-05/0.3495, allocations: 11.98 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3495, allocations: 3.938 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.3495, allocations: 4 kB / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3495, allocations: 0 / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3495, allocations: 3.984 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.3498, allocations: 195.4 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.3499, allocations: 81.11 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.3499, allocations: 3.984 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.35, allocations: 12 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.35, allocations: 7.984 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3501, allocations: 7.938 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.649e-05/0.3501, allocations: 87.22 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3501, allocations: 0 / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002406/0.3504, allocations: 8 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001864/0.3506, allocations: 107.2 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000274/0.3508, allocations: 71.89 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3508, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.351, allocations: 31.92 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.3512, allocations: 17.48 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.3516, allocations: 172.3 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3519, allocations: 0.6809 MB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.3519, allocations: 11.44 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3519, allocations: 0 / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of Templates: time 0.002558/0.3545, allocations: 0.8186 MB / 1.066 GB, free: 13.75 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches