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.001391/0.001391, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.473/2.473, allocations: 469.8 MB / 0.7424 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 63.53 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2317, allocations: 159.2 MB / 1.064 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00161/0.2334, allocations: 0.6757 MB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.2345, allocations: 1.051 MB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.2345, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.004e-05/0.2346, allocations: 7.922 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.032e-05/0.2346, allocations: 11.88 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.2348, allocations: 39.89 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.287e-05/0.2349, allocations: 39.86 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.869e-05/0.235, allocations: 16 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5e-05/0.235, allocations: 19.91 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.133e-05/0.2351, allocations: 19.92 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.2351, allocations: 4 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.066e-05/0.2352, allocations: 15.98 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.509e-05/0.2352, allocations: 11.92 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.2352, allocations: 19.88 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.363e-05/0.2353, allocations: 55.84 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.2353, allocations: 0 / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2353, allocations: 0 / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.2353, allocations: 4 kB / 1.066 GB, free: 12.24 MB / 0.8262 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.0004377/0.2358, allocations: 355.7 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.2358, allocations: 8.031 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.2359, allocations: 30.75 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.2359, allocations: 8.844 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.236, allocations: 172.3 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-06/0.236, allocations: 384 / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.236, allocations: 8.375 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001603/0.2362, allocations: 66.22 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2362, allocations: 3.938 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.2362, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-06/0.2362, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.2364, allocations: 35.97 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.2368, allocations: 288.8 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.2369, allocations: 42.55 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.265e-05/0.237, allocations: 24.94 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.237, allocations: 0 / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.2372, allocations: 79.28 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2372, allocations: 3.938 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0003313/0.2375, allocations: 105.6 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.2376, allocations: 51.41 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.2376, allocations: 105.8 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.2377, allocations: 29.7 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.097e-05/0.2377, allocations: 84.14 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.2377, allocations: 19.8 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.2378, allocations: 21.72 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2379, allocations: 318.8 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.078e-05/0.238, allocations: 19.98 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.2381, allocations: 51.41 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.2383, allocations: 71.34 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2383, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002397/0.2385, allocations: 109.4 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.2386, allocations: 8 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.2386, allocations: 0 / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.2386, allocations: 0 / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.779e-05/0.2387, allocations: 16.23 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.2387, allocations: 0 / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.371e-05/0.2388, allocations: 23.86 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.2388, allocations: 4 kB / 1.068 GB, free: 9.855 MB / 0.8262 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.473e-05/0.2388, allocations: 121.9 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.2389, allocations: 3.984 kB / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.2391, allocations: 93.55 kB / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2391, allocations: 0 / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2391, allocations: 4 kB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2391, allocations: 0 / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.2395, allocations: 342.4 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2395, allocations: 0 / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.597e-05/0.2396, allocations: 11.98 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2396, allocations: 0 / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.2396, allocations: 0 / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2396, allocations: 0 / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2396, allocations: 0 / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.2399, allocations: 187.4 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.493e-05/0.2399, allocations: 81.02 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.2399, allocations: 11.94 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.499e-05/0.24, allocations: 7.984 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.2401, allocations: 7.875 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.2401, allocations: 0 / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.421e-05/0.2401, allocations: 95.72 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2401, allocations: 4 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002078/0.2403, allocations: 8 kB / 1.069 GB, free: 8.789 MB / 0.8262 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.0005311/0.2409, allocations: 0.7207 MB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002174/0.2411, allocations: 59.89 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.2411, allocations: 0 / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.2412, allocations: 27.92 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.2414, allocations: 19.91 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.2428, allocations: 1.358 MB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.2431, allocations: 0.6818 MB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.46e-05/0.2431, allocations: 11.84 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.2431, allocations: 19.42 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2431, allocations: 0 / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.985/3.228, allocations: 1.681 MB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.49/12.72, allocations: 7.922 kB / 1.074 GB, free: 4.137 MB / 0.8262 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