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: "" <> 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.001196/0.001196, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001258/0.001258, allocations: 196.1 kB / 16.14 MB, free: 6.711 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.191/1.191, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.327/2.327, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 62.39 kB / 0.8985 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.227, allocations: 157.4 MB / 1.052 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00176/0.2288, allocations: 0.7231 MB / 1.053 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2299, allocations: 1.057 MB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.23, allocations: 0 / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.971e-05/0.23, allocations: 3.984 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.484e-05/0.2301, allocations: 7.922 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.2303, allocations: 31.92 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.072e-05/0.2303, allocations: 35.92 kB / 1.054 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.709e-05/0.2304, allocations: 15.97 kB / 1.054 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.331e-05/0.2305, allocations: 11.94 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.433e-05/0.2305, allocations: 23.91 kB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.2306, allocations: 4 kB / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.2306, allocations: 16 kB / 1.054 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.839e-05/0.2306, allocations: 15.92 kB / 1.054 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.297e-05/0.2307, allocations: 15.92 kB / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.906e-05/0.2308, allocations: 47.8 kB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2308, allocations: 0 / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2308, allocations: 0 / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.2308, allocations: 0 / 1.054 GB, free: 6.191 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.0004546/0.2313, allocations: 359.7 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2313, allocations: 15.97 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.86e-05/0.2313, allocations: 34.75 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.2314, allocations: 0.9375 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.2315, allocations: 180.2 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-06/0.2315, allocations: 384 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.2316, allocations: 8.375 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.2317, allocations: 58.17 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2317, allocations: 3.938 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2318, allocations: 4 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.2318, allocations: 4 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.2319, allocations: 47.89 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003964/0.2323, allocations: 276.8 kB / 1.055 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.2325, allocations: 50.55 kB / 1.055 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.341e-05/0.2326, allocations: 24.94 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.2326, allocations: 3.984 kB / 1.055 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.2328, allocations: 71.33 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.2328, allocations: 0 / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0003359/0.2331, allocations: 109.5 kB / 1.055 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2332, allocations: 55.39 kB / 1.055 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.981e-05/0.2332, allocations: 109.8 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.2333, allocations: 25.7 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.08e-05/0.2333, allocations: 84.14 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.2333, allocations: 11.81 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.2334, allocations: 25.7 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.2335, allocations: 322.8 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.932e-05/0.2336, allocations: 23.92 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.852e-05/0.2337, allocations: 47.41 kB / 1.056 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.2338, allocations: 79.33 kB / 1.056 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2339, allocations: 4 kB / 1.056 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002285/0.2341, allocations: 89.59 kB / 1.056 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.2341, allocations: 4.125 kB / 1.056 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2341, allocations: 4 kB / 1.056 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2341, allocations: 4 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.489e-05/0.2342, allocations: 15.98 kB / 1.056 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.2342, allocations: 3.984 kB / 1.056 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.425e-05/0.2343, allocations: 19.78 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.2343, allocations: 0 / 1.056 GB, free: 3.793 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 6.882e-05/0.2344, allocations: 117.8 kB / 1.056 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.2344, allocations: 4 kB / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.2347, allocations: 89.61 kB / 1.056 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2347, allocations: 4 kB / 1.056 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2347, allocations: 0 / 1.056 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2347, allocations: 3.938 kB / 1.056 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003758/0.2351, allocations: 346.6 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2351, allocations: 8 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/0.2351, allocations: 8.062 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.2351, allocations: 3.984 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.2352, allocations: 0 / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2352, allocations: 4 kB / 1.057 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2352, allocations: 3.938 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.2354, allocations: 187.4 kB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.2355, allocations: 81.11 kB / 1.057 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.2355, allocations: 0 / 1.057 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.2356, allocations: 7.984 kB / 1.057 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.2356, allocations: 7.922 kB / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.2356, allocations: 4 kB / 1.057 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.584e-05/0.2356, allocations: 83.75 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2357, allocations: 0 / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002235/0.2359, allocations: 11.91 kB / 1.057 GB, free: 2.73 MB / 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.0004979/0.2364, allocations: 0.7205 MB / 1.058 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000202/0.2366, allocations: 52.14 kB / 1.058 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2366, allocations: 4.062 kB / 1.058 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.568e-05/0.2367, allocations: 31.91 kB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.2369, allocations: 11.94 kB / 1.058 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.2383, allocations: 1.38 MB / 1.059 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.2385, allocations: 0.6848 MB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.021e-05/0.2385, allocations: 7.984 kB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.2386, allocations: 11.44 kB / 1.06 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2386, allocations: 0 / 1.06 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.117/0.3556, allocations: 1.504 MB / 1.061 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002536/0.3559, allocations: 216.2 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/1.959, allocations: 1.375 kB / 1.062 GB, free: 14.04 MB / 0.8262 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