Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001625/0.001625, 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.002203/0.002203, allocations: 210.6 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.48/1.48, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.402/3.402, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_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.002113/0.002113, allocations: 65.34 kB / 1.186 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3799, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002078/0.382, allocations: 0.6658 MB / 1.364 GB, free: 13.46 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001651/0.3836, allocations: 1.089 MB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.746e-05/0.3837, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.387e-05/0.3837, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.597e-05/0.3838, allocations: 15.86 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.3841, allocations: 35.91 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.3842, allocations: 47.86 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3843, allocations: 15.97 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.711e-05/0.3844, allocations: 15.92 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.147e-05/0.3845, allocations: 19.92 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.763e-05/0.3845, allocations: 4 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.342e-05/0.3846, allocations: 19.98 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.3846, allocations: 15.92 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.3846, allocations: 15.92 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3848, allocations: 64.06 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3848, allocations: 0 / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3848, allocations: 0 / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.3848, allocations: 3.938 kB / 1.365 GB, free: 12.09 MB / 1.061 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.0006053/0.3854, allocations: 286.2 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3854, allocations: 8.031 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.661e-05/0.3855, allocations: 34.75 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.694e-05/0.3856, allocations: 8.891 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.3857, allocations: 114.5 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.3857, allocations: 4.375 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.3857, allocations: 8.312 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3859, allocations: 62.23 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.3859, allocations: 3.938 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.386, allocations: 0 / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.386, allocations: 0 / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.3861, allocations: 47.89 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.3867, allocations: 251.9 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.3869, allocations: 54.55 kB / 1.366 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.387, allocations: 26.03 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.387, allocations: 4 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3872, allocations: 79.31 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.3872, allocations: 3.938 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004207/0.3876, allocations: 117.6 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.3877, allocations: 55.41 kB / 1.366 GB, free: 10.79 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.891e-05/0.3878, allocations: 113.8 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3878, allocations: 29.7 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.3879, allocations: 84.14 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.3879, allocations: 15.84 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.3879, allocations: 25.7 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3882, allocations: 322.8 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.3883, allocations: 27.91 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.3884, allocations: 64.27 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.3886, allocations: 80.2 kB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3886, allocations: 0 / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003314/0.3889, allocations: 117.5 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.389, allocations: 4 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.389, allocations: 4 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.389, allocations: 0 / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.3891, allocations: 15.98 kB / 1.367 GB, free: 9.832 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.3891, allocations: 0 / 1.367 GB, free: 9.832 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.218e-05/0.3892, allocations: 15.94 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3892, allocations: 4 kB / 1.367 GB, free: 9.812 MB / 1.061 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 0.0001054/0.3893, allocations: 130.5 kB / 1.367 GB, free: 9.676 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.3893, allocations: 0 / 1.367 GB, free: 9.676 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.3896, allocations: 102 kB / 1.368 GB, free: 9.566 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3896, allocations: 3.984 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3896, allocations: 3.938 kB / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3896, allocations: 0 / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005739/0.3902, allocations: 321.4 kB / 1.368 GB, free: 9.195 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3902, allocations: 4 kB / 1.368 GB, free: 9.191 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.853e-05/0.3902, allocations: 7.984 kB / 1.368 GB, free: 9.184 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3902, allocations: 4 kB / 1.368 GB, free: 9.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3902, allocations: 4.375 kB / 1.368 GB, free: 9.176 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3902, allocations: 0 / 1.368 GB, free: 9.176 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3902, allocations: 4 kB / 1.368 GB, free: 9.172 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.3906, allocations: 191.4 kB / 1.368 GB, free: 8.969 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.508e-05/0.3906, allocations: 11.94 kB / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.3906, allocations: 8.188 kB / 1.368 GB, free: 8.949 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.861e-05/0.3907, allocations: 7.984 kB / 1.368 GB, free: 8.941 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.3907, allocations: 15.86 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.3907, allocations: 0 / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.3908, allocations: 87.28 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3908, allocations: 0 / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002443/0.391, allocations: 8 kB / 1.368 GB, free: 8.832 MB / 1.061 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.0007808/0.3918, allocations: 0.7319 MB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002696/0.3921, allocations: 67.89 kB / 1.369 GB, free: 8.008 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3921, allocations: 0 / 1.369 GB, free: 8.008 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.3922, allocations: 23.98 kB / 1.369 GB, free: 7.984 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.3925, allocations: 18.06 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.3942, allocations: 1.415 MB / 1.37 GB, free: 6.453 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.965e-05/0.3943, allocations: 63.34 kB / 1.37 GB, free: 6.371 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.22e-05/0.3943, allocations: 7.984 kB / 1.371 GB, free: 6.363 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.3944, allocations: 15.44 kB / 1.371 GB, free: 6.348 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.3944, allocations: 4 kB / 1.371 GB, free: 6.344 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03116/0.4255, allocations: 2.347 MB / 1.373 GB, free: 4.133 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.63, allocations: 1.578 kB / 1.373 GB, free: 4.133 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.670341399963945]