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.001032/0.001032, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.009293/0.009293, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.718/1.718, allocations: 223.2 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.047/3.047, allocations: 462.6 MB / 0.7364 GB, free: 320 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003792, allocations: 8.844 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4165, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0009245/0.4175, allocations: 407.1 kB / 1.059 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001411/0.4189, allocations: 1.042 MB / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.577e-05/0.419, allocations: 0 / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.419, allocations: 7.875 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.447e-05/0.4191, allocations: 3.984 kB / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.4193, allocations: 39.91 kB / 1.06 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.342e-05/0.4194, allocations: 35.92 kB / 1.06 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.4195, allocations: 11.98 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.453e-05/0.4196, allocations: 19.86 kB / 1.06 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.769e-05/0.4197, allocations: 19.92 kB / 1.06 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.4197, allocations: 0 / 1.06 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.084e-05/0.4197, allocations: 15.98 kB / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.82e-05/0.4198, allocations: 7.984 kB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.993e-05/0.4198, allocations: 41.58 kB / 1.06 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.4199, allocations: 51.84 kB / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.42, allocations: 0 / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.284e-06/0.42, allocations: 0 / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.42, allocations: 4 kB / 1.06 GB, free: 3.773 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.0005472/0.4205, allocations: 355.6 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4206, allocations: 12.03 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.4206, allocations: 0.9375 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.4208, allocations: 172.2 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.4208, allocations: 384 / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.4208, allocations: 4.375 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.4211, allocations: 74.16 kB / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.4211, allocations: 192 / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.4211, allocations: 3.938 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.4211, allocations: 0 / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.4213, allocations: 47.97 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005465/0.4219, allocations: 276.9 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.4221, allocations: 66.36 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.4222, allocations: 32.94 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.4222, allocations: 3.984 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.4225, allocations: 75.38 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 4.89e-06/0.4225, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0004593/0.423, allocations: 125.5 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.4231, allocations: 59.34 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.4232, allocations: 105.8 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4232, allocations: 29.7 kB / 1.062 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.4233, allocations: 84.14 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.617e-05/0.4233, allocations: 11.8 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.4234, allocations: 17.72 kB / 1.062 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4235, allocations: 310.8 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.4237, allocations: 35.97 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.4238, allocations: 55.41 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.424, allocations: 83.28 kB / 1.062 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.424, allocations: 4 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002806/0.4243, allocations: 109.6 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.4244, allocations: 6.031 kB / 1.062 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4244, allocations: 4 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4244, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.4245, allocations: 28.05 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.4246, allocations: 0 / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.857e-05/0.4247, allocations: 15.92 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.4247, allocations: 4 kB / 1.062 GB, free: 1.355 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.0001135/0.4248, allocations: 119.3 kB / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.4248, allocations: 3.906 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003356/0.4252, allocations: 109.5 kB / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.4252, allocations: 0 / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4252, allocations: 320 / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4252, allocations: 0 / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005381/0.4257, allocations: 354.5 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4258, allocations: 0 / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-05/0.4258, allocations: 11.98 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.4258, allocations: 3.938 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.4258, allocations: 4 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4259, allocations: 0 / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4259, allocations: 4 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.4262, allocations: 199.3 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.52e-05/0.4263, allocations: 77.11 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.4263, allocations: 8 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.368e-05/0.4264, allocations: 15.92 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.4264, allocations: 4 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.4265, allocations: 3.938 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.26e-05/0.4265, allocations: 87.27 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4266, allocations: 0 / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002543/0.4268, allocations: 16 kB / 1.063 GB, free: 256 kB / 0.8106 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.0001946/0.427, allocations: 99.25 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002628/0.4273, allocations: 71.89 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4273, allocations: 0 / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.4274, allocations: 40.16 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.4277, allocations: 8.969 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003646/0.4281, allocations: 146.6 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.4284, allocations: 0.6809 MB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.198e-05/0.4284, allocations: 11.98 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.371e-05/0.4285, allocations: 11.44 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.4285, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.003269/0.4317, allocations: 0.6535 MB / 1.065 GB, free: 14.47 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/jenkins/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