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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 213.5 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.569/1.569, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.851/2.851, allocations: 476 MB / 0.7699 GB, free: 4.758 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 69.31 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3321, allocations: 170 MB / 1.283 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001968/0.334, allocations: 0.6571 MB / 1.283 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3356, allocations: 1.075 MB / 1.284 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/0.3357, allocations: 4 kB / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.886e-05/0.3357, allocations: 0 / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.3358, allocations: 11.86 kB / 1.284 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.3361, allocations: 39.91 kB / 1.284 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.3363, allocations: 43.8 kB / 1.284 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3364, allocations: 17.66 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.26e-05/0.3365, allocations: 19.88 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.205e-05/0.3365, allocations: 15.92 kB / 1.284 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3365, allocations: 8 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.697e-05/0.3366, allocations: 23.98 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.334e-05/0.3366, allocations: 11.97 kB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.884e-05/0.3367, allocations: 15.94 kB / 1.284 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.3368, allocations: 59.3 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3368, allocations: 0 / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3368, allocations: 0 / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.3368, allocations: 4 kB / 1.285 GB, free: 10.46 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.0005687/0.3374, allocations: 278.2 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3374, allocations: 8.031 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3375, allocations: 42.69 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.3376, allocations: 8.891 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3377, allocations: 114.5 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.3377, allocations: 384 / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.3377, allocations: 4.375 kB / 1.285 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.3379, allocations: 62.22 kB / 1.285 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3379, allocations: 3.938 kB / 1.285 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.3379, allocations: 0 / 1.285 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.3379, allocations: 0 / 1.285 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.3381, allocations: 47.95 kB / 1.285 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004634/0.3386, allocations: 247.9 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.3388, allocations: 38.56 kB / 1.285 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.944e-05/0.3388, allocations: 24.92 kB / 1.285 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.3389, allocations: 4 kB / 1.285 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.3391, allocations: 71.33 kB / 1.285 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.3391, allocations: 4 kB / 1.285 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003811/0.3395, allocations: 101.6 kB / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.3395, allocations: 55.41 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.3396, allocations: 109.8 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.3396, allocations: 29.7 kB / 1.286 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.655e-05/0.3397, allocations: 84.14 kB / 1.286 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.3397, allocations: 11.91 kB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.3398, allocations: 21.7 kB / 1.286 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3399, allocations: 326.8 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.34, allocations: 23.97 kB / 1.286 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.3401, allocations: 51.34 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.3403, allocations: 71.64 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3403, allocations: 7.938 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002491/0.3406, allocations: 101.5 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3406, allocations: 11.98 kB / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3406, allocations: 3.938 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3406, allocations: 0 / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3407, allocations: 15.98 kB / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3407, allocations: 0 / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.782e-05/0.3408, allocations: 16.02 kB / 1.286 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3408, allocations: 4 kB / 1.286 GB, free: 8.273 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 0.0001044/0.3409, allocations: 125.7 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.3409, allocations: 0 / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.3412, allocations: 85.72 kB / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3412, allocations: 4 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3412, allocations: 3.984 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3412, allocations: 0 / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004617/0.3417, allocations: 309.5 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3417, allocations: 0 / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/0.3417, allocations: 7.984 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3417, allocations: 0 / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.3417, allocations: 4 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3417, allocations: 0 / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3417, allocations: 0 / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.342, allocations: 195.3 kB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-06/0.3421, allocations: 4 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.3421, allocations: 3.984 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.478e-05/0.3421, allocations: 4.188 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.486e-05/0.3422, allocations: 15.92 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.3422, allocations: 0 / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.598e-05/0.3423, allocations: 87.28 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3423, allocations: 0 / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002434/0.3425, allocations: 11.95 kB / 1.287 GB, free: 7.344 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.0007333/0.3433, allocations: 0.7163 MB / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.3435, allocations: 63.88 kB / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3435, allocations: 0 / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.3436, allocations: 27.92 kB / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.3439, allocations: 20.06 kB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.3457, allocations: 1.373 MB / 1.289 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.543e-05/0.3457, allocations: 67.34 kB / 1.289 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.009e-05/0.3458, allocations: 0 / 1.289 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.733e-05/0.3458, allocations: 23.42 kB / 1.289 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3458, allocations: 0 / 1.289 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.3748, allocations: 2.271 MB / 1.292 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 12.05 kB / 1.292 GB, free: 2.785 MB / 0.9825 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.63673892384395]