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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007201/0.007201, allocations: 105.4 kB / 15.74 MB, free: 6.488 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.001764/0.001764, allocations: 194.9 kB / 16.68 MB, free: 6.375 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.805/2.805, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 79.88 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3358, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002067/0.3379, allocations: 0.6714 MB / 1.208 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.3393, allocations: 1.046 MB / 1.209 GB, free: 8.426 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.025e-05/0.3393, allocations: 3.938 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.3394, allocations: 0 / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.969e-05/0.3395, allocations: 7.938 kB / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002818/0.3398, allocations: 47.77 kB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.933e-05/0.3399, allocations: 35.92 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.34, allocations: 15.98 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.129e-05/0.3401, allocations: 19.88 kB / 1.209 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.687e-05/0.3401, allocations: 27.89 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.3401, allocations: 4 kB / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.3402, allocations: 15.98 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.3402, allocations: 4 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.3403, allocations: 23.86 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.3404, allocations: 51.86 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3404, allocations: 3.938 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3405, allocations: 4 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3405, allocations: 0 / 1.209 GB, free: 8.164 MB / 0.9669 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.0006346/0.3411, allocations: 351.7 kB / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3412, allocations: 8.625 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.3412, allocations: 38.75 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.11e-05/0.3412, allocations: 4.844 kB / 1.21 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.3415, allocations: 180.2 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.3415, allocations: 384 / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.3415, allocations: 8.375 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.3417, allocations: 58.23 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3417, allocations: 3.938 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.3417, allocations: 0 / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3418, allocations: 0 / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.3419, allocations: 39.95 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.3424, allocations: 292.7 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.3426, allocations: 42.5 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.3427, allocations: 28.92 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.3427, allocations: 4 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.3429, allocations: 67.39 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.523e-06/0.3429, allocations: 4 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0003673/0.3433, allocations: 109.6 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.3434, allocations: 51.41 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.984e-05/0.3434, allocations: 105.8 kB / 1.211 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3435, allocations: 29.7 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.632e-05/0.3435, allocations: 92.05 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.3436, allocations: 8.406 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.3436, allocations: 25.7 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3437, allocations: 314.8 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.174e-05/0.3438, allocations: 23.97 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.3439, allocations: 47.42 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3441, allocations: 75.33 kB / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3441, allocations: 0 / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002445/0.3444, allocations: 105.4 kB / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3444, allocations: 11.98 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.3444, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.3444, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.3445, allocations: 15.98 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.3446, allocations: 0 / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.348e-05/0.3446, allocations: 11.94 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3446, allocations: 4 kB / 1.211 GB, free: 5.785 MB / 0.9669 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 8.066e-05/0.3447, allocations: 129.8 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.3448, allocations: 3.906 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.3451, allocations: 89.56 kB / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3451, allocations: 4 kB / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3451, allocations: 0 / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3451, allocations: 3.984 kB / 1.211 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.3455, allocations: 342.4 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3455, allocations: 0 / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.96e-05/0.3456, allocations: 11.98 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3456, allocations: 0 / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.3456, allocations: 0 / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3456, allocations: 3.938 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3456, allocations: 4.375 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003467/0.346, allocations: 183.5 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.3461, allocations: 81.02 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3461, allocations: 7.984 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.946e-05/0.3462, allocations: 8 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.3462, allocations: 11.86 kB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.3463, allocations: 4 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.957e-05/0.3463, allocations: 87.27 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3463, allocations: 4 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002511/0.3466, allocations: 12 kB / 1.212 GB, free: 4.703 MB / 0.9669 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.0006317/0.3472, allocations: 0.7163 MB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003514/0.3476, allocations: 59.89 kB / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3476, allocations: 0 / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.885e-05/0.3477, allocations: 27.97 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.3479, allocations: 9.656 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.3495, allocations: 1.383 MB / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.35, allocations: 0.6846 MB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.037e-05/0.35, allocations: 0 / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.35, allocations: 11.44 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.35, allocations: 0 / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.3681, allocations: 1.722 MB / 1.217 GB, free: 52 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.127, allocations: 8.578 kB / 1.217 GB, free: 48 kB / 0.9669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > 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