Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001765/0.001765, 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.001793/0.001793, allocations: 212.1 kB / 22.24 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.19/3.19, allocations: 0.4892 GB / 0.7943 GB, free: 35.65 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_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.002077/0.002077, allocations: 66.75 kB / 1.153 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3418, allocations: 176.1 MB / 1.325 GB, free: 2.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001891/0.3437, allocations: 0.6609 MB / 1.326 GB, free: 1.73 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.3451, allocations: 1.085 MB / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.566e-05/0.3451, allocations: 0 / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.3452, allocations: 7.938 kB / 1.327 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.443e-05/0.3452, allocations: 11.94 kB / 1.327 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.3455, allocations: 43.83 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.3456, allocations: 51.84 kB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.3457, allocations: 8 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.186e-05/0.3458, allocations: 19.92 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.166e-05/0.3459, allocations: 19.91 kB / 1.327 GB, free: 484 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.3459, allocations: 4 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.251e-05/0.3459, allocations: 23.98 kB / 1.327 GB, free: 456 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.346, allocations: 4 kB / 1.327 GB, free: 452 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.454e-05/0.346, allocations: 23.86 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3461, allocations: 64 kB / 1.327 GB, free: 364 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3461, allocations: 0 / 1.327 GB, free: 364 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3461, allocations: 4 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.3461, allocations: 0 / 1.327 GB, free: 360 kB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005326/0.3467, allocations: 286.2 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3467, allocations: 12.03 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.3468, allocations: 30.75 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.984e-05/0.3469, allocations: 4.938 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.347, allocations: 122.4 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.347, allocations: 8.359 kB / 1.327 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.347, allocations: 4.375 kB / 1.327 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.3472, allocations: 62.17 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3472, allocations: 3.938 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.3472, allocations: 3.984 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.3473, allocations: 7.984 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.3474, allocations: 35.97 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.3479, allocations: 251.9 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.3481, allocations: 50.48 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3482, allocations: 32.91 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.3482, allocations: 0 / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.3485, allocations: 83.31 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.3485, allocations: 0 / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004147/0.3489, allocations: 121.6 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.3489, allocations: 55.34 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.349, allocations: 109.8 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.3491, allocations: 33.7 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.731e-05/0.3491, allocations: 80.14 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.3491, allocations: 23.83 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.481e-05/0.3492, allocations: 21.72 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3493, allocations: 322.8 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.3494, allocations: 23.98 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.3496, allocations: 60.27 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.3498, allocations: 88.19 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3498, allocations: 0 / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000283/0.3501, allocations: 113.5 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3501, allocations: 8 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3501, allocations: 0 / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.3501, allocations: 4 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3502, allocations: 15.97 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3502, allocations: 7.938 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.3503, allocations: 4 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.3503, allocations: 8.156 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,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 (9): * Single equations (assignments): 9 * 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 9.752e-05/0.3504, allocations: 125.6 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.3504, allocations: 7.953 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003114/0.3507, allocations: 98.02 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.3507, allocations: 0 / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3507, allocations: 4 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3507, allocations: 3.938 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004826/0.3512, allocations: 321.6 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3512, allocations: 384 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.764e-05/0.3513, allocations: 11.98 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3513, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3513, allocations: 4 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3513, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3513, allocations: 7.922 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.3516, allocations: 199.3 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.058e-05/0.3516, allocations: 8.141 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.3517, allocations: 4 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.3517, allocations: 15.92 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.3518, allocations: 7.922 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.3518, allocations: 4 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.927e-05/0.3518, allocations: 83.28 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3518, allocations: 0 / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000248/0.3521, allocations: 12 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006627/0.3528, allocations: 0.728 MB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002553/0.353, allocations: 63.89 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.353, allocations: 0 / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.3531, allocations: 31.97 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.3534, allocations: 11.94 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.355, allocations: 1.411 MB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.585e-05/0.3551, allocations: 72.8 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.14e-05/0.3551, allocations: 4 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.3552, allocations: 19.44 kB / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of SimCode: time 3.61e-07/0.3552, allocations: 0 / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3864, allocations: 2.335 MB / 1.334 GB, free: 8.395 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.67, allocations: 10.27 kB / 1.334 GB, free: 8.387 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.46072052512318]