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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001321/0.001321, allocations: 109 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 183 kB / 17.34 MB, free: 5.762 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.451/2.451, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 67.89 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7877/0.7889, allocations: 157.4 MB / 1.208 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00179/0.7907, allocations: 0.6675 MB / 1.209 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.7921, allocations: 1.053 MB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.654e-05/0.7921, allocations: 0 / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.7922, allocations: 3.938 kB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.923e-05/0.7922, allocations: 3.938 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.7925, allocations: 47.83 kB / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.786e-05/0.7926, allocations: 39.86 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.42e-05/0.7927, allocations: 19.97 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.097e-05/0.7928, allocations: 15.98 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.77e-05/0.7928, allocations: 19.86 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.7929, allocations: 4 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.497e-05/0.7929, allocations: 23.92 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.793, allocations: 4 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.793, allocations: 23.91 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.7931, allocations: 43.81 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7931, allocations: 0 / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.106e-06/0.7931, allocations: 4 kB / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.7931, allocations: 4 kB / 1.21 GB, free: 11.81 MB / 0.9356 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.0005263/0.7937, allocations: 357.2 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.7937, allocations: 12.03 kB / 1.211 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.055e-05/0.7938, allocations: 4.844 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.7939, allocations: 172.4 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.7939, allocations: 384 / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.7939, allocations: 4.375 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.7941, allocations: 66.17 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.7941, allocations: 192 / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.7942, allocations: 3.938 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.7942, allocations: 0 / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.7944, allocations: 43.95 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.7948, allocations: 264.9 kB / 1.211 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.7949, allocations: 62.42 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.993e-05/0.795, allocations: 24.94 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.7951, allocations: 3.984 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.7953, allocations: 63.39 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.7953, allocations: 0 / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0003803/0.7956, allocations: 105.6 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.7957, allocations: 59.33 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.299e-05/0.7958, allocations: 109.8 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.7958, allocations: 25.7 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.758e-05/0.7959, allocations: 103.9 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.7959, allocations: 7.906 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.7959, allocations: 29.7 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.7961, allocations: 310.8 kB / 1.212 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.325e-05/0.7962, allocations: 19.98 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.7963, allocations: 47.41 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.7965, allocations: 83.27 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.7965, allocations: 4 kB / 1.212 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002472/0.7968, allocations: 101.6 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.7968, allocations: 4 kB / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.7968, allocations: 0 / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.7968, allocations: 4 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.7969, allocations: 15.92 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.7969, allocations: 256 / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.937e-05/0.797, allocations: 15.98 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.797, allocations: 4 kB / 1.212 GB, free: 9.469 MB / 0.9356 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 9.313e-05/0.7971, allocations: 113.8 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.7971, allocations: 12 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.7974, allocations: 93.55 kB / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.7974, allocations: 3.984 kB / 1.213 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.7974, allocations: 0 / 1.213 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7974, allocations: 0 / 1.213 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.7978, allocations: 346.3 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.7979, allocations: 8 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.594e-05/0.7979, allocations: 4 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.7979, allocations: 0 / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.7979, allocations: 3.984 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.798, allocations: 7.938 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.798, allocations: 0 / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.7982, allocations: 179.5 kB / 1.213 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.7983, allocations: 85.02 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.7983, allocations: 0 / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.044e-05/0.7984, allocations: 7.984 kB / 1.213 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.7984, allocations: 4 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.7984, allocations: 11.92 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.578e-05/0.7985, allocations: 83.28 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7985, allocations: 7.875 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002297/0.7987, allocations: 8 kB / 1.213 GB, free: 8.395 MB / 0.9356 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.000148/0.7989, allocations: 107.2 kB / 1.213 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.7992, allocations: 55.89 kB / 1.213 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.7992, allocations: 4 kB / 1.213 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.7993, allocations: 28.11 kB / 1.213 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.7995, allocations: 22.17 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.7999, allocations: 162.1 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.8002, allocations: 0.6807 MB / 1.214 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.8002, allocations: 11.44 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.8002, allocations: 0 / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of Templates: time 0.00222/0.8024, allocations: 0.8182 MB / 1.215 GB, free: 6.453 MB / 0.9356 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