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.001247/0.001247, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001176/0.001176, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.882/2.882, allocations: 436.5 MB / 0.7104 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006009/0.0006014, allocations: 12 kB / 0.8708 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8147/0.8154, allocations: 153.6 MB / 1.021 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0008604/0.8163, allocations: 396.7 kB / 1.021 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.8176, allocations: 1.023 MB / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.8176, allocations: 0 / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.8176, allocations: 0 / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.8177, allocations: 11.92 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.8179, allocations: 31.91 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.782e-05/0.818, allocations: 27.91 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.8181, allocations: 11.98 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.129e-05/0.8182, allocations: 8 kB / 1.022 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.498e-05/0.8183, allocations: 23.89 kB / 1.022 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.8183, allocations: 4 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.711e-05/0.8184, allocations: 8 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.8184, allocations: 11.92 kB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.8184, allocations: 33.7 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.938e-05/0.8185, allocations: 31.94 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.8185, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8185, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.8186, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 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.0004782/0.819, allocations: 357.2 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.8191, allocations: 15.98 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.8191, allocations: 3.906 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.8192, allocations: 167.1 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.8193, allocations: 4 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.8193, allocations: 4 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.8195, allocations: 81.55 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.8195, allocations: 0 / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.8196, allocations: 3.938 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.8196, allocations: 0 / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.8198, allocations: 55.95 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.8202, allocations: 276.8 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.8204, allocations: 58.48 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.8204, allocations: 4 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.8206, allocations: 67.48 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.392e-06/0.8206, allocations: 7.938 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.000407/0.821, allocations: 121.6 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.8211, allocations: 55.41 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.8212, allocations: 109.8 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.8212, allocations: 25.7 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.8212, allocations: 88.08 kB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.8213, allocations: 15.81 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-06/0.8213, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.8214, allocations: 314.8 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.8215, allocations: 31.98 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.8216, allocations: 55.41 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.8217, allocations: 27.98 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.8218, allocations: 7.953 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002533/0.822, allocations: 117.5 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.822, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.822, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.8221, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.8222, allocations: 15.98 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.8222, allocations: 0 / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.777e-05/0.8223, allocations: 11.98 kB / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.8223, allocations: 4.469 kB / 1.024 GB, free: 13.23 MB / 0.7794 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.505e-05/0.8224, allocations: 117.9 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.8224, allocations: 3.953 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.8227, allocations: 101.5 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.8227, allocations: 4 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.8227, allocations: 4 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8227, allocations: 0 / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004162/0.8231, allocations: 362.3 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.8231, allocations: 384 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.8232, allocations: 19.92 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.8232, allocations: 0 / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.8232, allocations: 4 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.8232, allocations: 4 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8232, allocations: 0 / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.8235, allocations: 195.5 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.8236, allocations: 81.02 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.8236, allocations: 0 / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.8237, allocations: 11.98 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.8237, allocations: 7.875 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.8238, allocations: 8 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.073e-05/0.8238, allocations: 91.25 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8238, allocations: 0 / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002345/0.8241, allocations: 12 kB / 1.025 GB, free: 12.12 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001549/0.8242, allocations: 99.25 kB / 1.025 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.8245, allocations: 71.89 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8245, allocations: 0 / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.8246, allocations: 31.97 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.8248, allocations: 9.5 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003541/0.8251, allocations: 143.2 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.8255, allocations: 0.6848 MB / 1.026 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.935e-05/0.8255, allocations: 8 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.201e-05/0.8255, allocations: 7.438 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.8255, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.00292/0.8285, allocations: 0.6416 MB / 1.027 GB, free: 10.38 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches