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.001378/0.001378, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001581/0.001581, allocations: 218.2 kB / 22.26 MB, free: 5.121 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.537/1.537, allocations: 230.6 MB / 256 MB, free: 8.004 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.894/2.894, allocations: 476.7 MB / 0.7707 GB, free: 4.312 MB / 0.6231 GB " [Timeout remaining time 176] 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.002108/0.002108, allocations: 66.81 kB / 1.117 GB, free: 39.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3294, allocations: 169.9 MB / 1.283 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00301/0.3324, allocations: 0.6815 MB / 1.284 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002043/0.3345, allocations: 1.094 MB / 1.285 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.109e-05/0.3345, allocations: 0 / 1.285 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/0.3346, allocations: 7.875 kB / 1.285 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.747e-05/0.3347, allocations: 15.91 kB / 1.285 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.335, allocations: 35.86 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.3351, allocations: 47.84 kB / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3352, allocations: 7.984 kB / 1.285 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.991e-05/0.3353, allocations: 19.98 kB / 1.285 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.13e-05/0.3354, allocations: 23.8 kB / 1.285 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.3354, allocations: 4 kB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.708e-05/0.3355, allocations: 23.98 kB / 1.285 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.071e-05/0.3355, allocations: 11.97 kB / 1.285 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.071e-05/0.3356, allocations: 15.94 kB / 1.285 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.3357, allocations: 67.3 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3357, allocations: 4 kB / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3357, allocations: 0 / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.902e-06/0.3357, allocations: 0 / 1.285 GB, free: 9.605 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.0005813/0.3363, allocations: 278.2 kB / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3364, allocations: 8.031 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.3364, allocations: 38.75 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.929e-05/0.3365, allocations: 8.891 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.3366, allocations: 110.4 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.3366, allocations: 12.31 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.3366, allocations: 384 / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.3368, allocations: 62.22 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.3369, allocations: 3.938 kB / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.3369, allocations: 0 / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3369, allocations: 4 kB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.337, allocations: 43.95 kB / 1.286 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.3375, allocations: 252 kB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.3377, allocations: 46.48 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.09e-05/0.3378, allocations: 24.94 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.3378, allocations: 0 / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.338, allocations: 71.38 kB / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.338, allocations: 0 / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003968/0.3384, allocations: 109.5 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.3385, allocations: 51.41 kB / 1.286 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.3386, allocations: 109.8 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3386, allocations: 25.7 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.3387, allocations: 92.14 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3387, allocations: 19.83 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.3387, allocations: 25.7 kB / 1.287 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3389, allocations: 318.8 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.552e-05/0.339, allocations: 19.98 kB / 1.287 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.3391, allocations: 55.34 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.3393, allocations: 71.34 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3393, allocations: 4 kB / 1.287 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002723/0.3396, allocations: 101.6 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3396, allocations: 4 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3396, allocations: 3.938 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3396, allocations: 4 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.3397, allocations: 11.98 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3397, allocations: 480 / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.323e-05/0.3398, allocations: 15.94 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.3398, allocations: 8.125 kB / 1.287 GB, free: 7.41 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 9.211e-05/0.3399, allocations: 113.8 kB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.3399, allocations: 8 kB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.3402, allocations: 97.62 kB / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3402, allocations: 0 / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3402, allocations: 0 / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3402, allocations: 0 / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.3406, allocations: 313.9 kB / 1.288 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3406, allocations: 3.938 kB / 1.288 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.415e-05/0.3407, allocations: 12.05 kB / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3407, allocations: 0 / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.3407, allocations: 4 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3407, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3407, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.341, allocations: 183.4 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.341, allocations: 7.953 kB / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.341, allocations: 0 / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.281e-05/0.3411, allocations: 8 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.3411, allocations: 7.922 kB / 1.288 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.3411, allocations: 7.938 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.516e-05/0.3412, allocations: 95.25 kB / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3412, allocations: 0 / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002534/0.3415, allocations: 15.94 kB / 1.288 GB, free: 6.465 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.0006514/0.3421, allocations: 0.7124 MB / 1.289 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000249/0.3424, allocations: 59.89 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3424, allocations: 0 / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.3425, allocations: 27.92 kB / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.3427, allocations: 15.69 kB / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.3444, allocations: 1.365 MB / 1.29 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.3447, allocations: 0.6846 MB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.589e-05/0.3448, allocations: 7.984 kB / 1.291 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.901e-05/0.3448, allocations: 11.44 kB / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of SimCode: time 4.71e-07/0.3448, allocations: 0 / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03841/0.3832, allocations: 1.845 MB / 1.293 GB, free: 1.738 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.6, allocations: 4.062 kB / 1.293 GB, free: 1.734 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 & /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 --stepSize=0.0004 --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) [Timeout 420.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.578097901074216]