Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_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.007157/0.007157, allocations: 100.5 kB / 15.73 MB, free: 6.445 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.002155/0.002155, allocations: 191.6 kB / 16.67 MB, free: 6.348 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.237/1.237, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.44/2.44, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 64.09 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2398, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001457/0.2413, allocations: 0.662 MB / 1.221 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2424, allocations: 1.051 MB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.634e-05/0.2424, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.186e-05/0.2425, allocations: 7.875 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.11e-05/0.2425, allocations: 7.922 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2427, allocations: 35.84 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.626e-05/0.2428, allocations: 43.91 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.927e-05/0.2429, allocations: 8 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.411e-05/0.243, allocations: 19.92 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.51e-05/0.243, allocations: 27.91 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.243, allocations: 4 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.301e-05/0.2431, allocations: 15.92 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.2431, allocations: 11.98 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.2431, allocations: 19.88 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.2432, allocations: 55.72 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.2433, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2433, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.2433, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 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.0004402/0.2437, allocations: 363.3 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.2437, allocations: 12.03 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.603e-05/0.2438, allocations: 30.75 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.2438, allocations: 4.938 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2439, allocations: 172.3 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-06/0.2439, allocations: 384 / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2439, allocations: 4.375 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.2441, allocations: 66.16 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.2441, allocations: 7.938 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.2441, allocations: 0 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2441, allocations: 0 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.2443, allocations: 43.89 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.2447, allocations: 276.9 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.2448, allocations: 54.55 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.268e-05/0.2449, allocations: 28.88 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.2449, allocations: 0 / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.2451, allocations: 71.33 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.2451, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003311/0.2454, allocations: 105.6 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.2455, allocations: 51.41 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.61e-05/0.2456, allocations: 113.8 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.2456, allocations: 29.7 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.398e-05/0.2456, allocations: 88.09 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.2456, allocations: 15.88 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.2457, allocations: 17.72 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2458, allocations: 326.8 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.755e-05/0.2459, allocations: 20.23 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.246, allocations: 47.41 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.2462, allocations: 79.34 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2462, allocations: 4 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002372/0.2465, allocations: 101.5 kB / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.258e-06/0.2465, allocations: 4.125 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-06/0.2465, allocations: 4 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.2465, allocations: 4 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.901e-05/0.2466, allocations: 15.92 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.2466, allocations: 3.938 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.894e-05/0.2467, allocations: 11.98 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.2467, allocations: 0 / 1.224 GB, free: 9.941 MB / 0.9825 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 7.664e-05/0.2468, allocations: 117.8 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.21e-05/0.2468, allocations: 7.953 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.247, allocations: 97.55 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.247, allocations: 0 / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.247, allocations: 0 / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.247, allocations: 0 / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003725/0.2474, allocations: 334.5 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2474, allocations: 4 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.586e-05/0.2475, allocations: 11.98 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.2475, allocations: 3.938 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.2475, allocations: 4 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2475, allocations: 0 / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2475, allocations: 3.938 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.2478, allocations: 183.4 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.2478, allocations: 85.11 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.2478, allocations: 192 / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.458e-05/0.2479, allocations: 11.98 kB / 1.225 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/0.2479, allocations: 3.938 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.2479, allocations: 8 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.373e-05/0.248, allocations: 87.25 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.248, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002111/0.2482, allocations: 19.94 kB / 1.225 GB, free: 8.863 MB / 0.9825 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.0005173/0.2487, allocations: 0.7168 MB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002094/0.2489, allocations: 55.89 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.249, allocations: 4.25 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/0.2491, allocations: 27.98 kB / 1.226 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/0.2493, allocations: 15.92 kB / 1.226 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.2506, allocations: 1.369 MB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.2509, allocations: 0.6845 MB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.326e-05/0.2509, allocations: 3.984 kB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.2509, allocations: 19.44 kB / 1.228 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.2509, allocations: 0 / 1.228 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.962/7.213, allocations: 1.707 MB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.998/17.21, allocations: 21.72 kB / 1.23 GB, free: 4.199 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches