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.001849/0.001849, allocations: 103 kB / 16.45 MB, free: 6.449 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.00225/0.00225, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.535/1.535, allocations: 230.6 MB / 252.8 MB, free: 9.125 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.324/3.324, allocations: 0.505 GB / 0.8066 GB, free: 23.1 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.002196/0.002196, allocations: 66.45 kB / 1.172 GB, free: 17.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3744, allocations: 180.2 MB / 1.348 GB, free: 10.02 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002127/0.3765, allocations: 0.6872 MB / 1.348 GB, free: 9.332 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.3781, allocations: 1.101 MB / 1.349 GB, free: 8.219 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.676e-05/0.3781, allocations: 0 / 1.349 GB, free: 8.219 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.3782, allocations: 3.938 kB / 1.349 GB, free: 8.215 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.445e-05/0.3782, allocations: 7.938 kB / 1.35 GB, free: 8.207 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.3785, allocations: 47.83 kB / 1.35 GB, free: 8.16 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.3786, allocations: 43.91 kB / 1.35 GB, free: 8.117 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.812e-05/0.3787, allocations: 4 kB / 1.35 GB, free: 8.113 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.959e-05/0.3788, allocations: 23.92 kB / 1.35 GB, free: 8.09 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.3789, allocations: 19.92 kB / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.3789, allocations: 4 kB / 1.35 GB, free: 8.066 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.503e-05/0.379, allocations: 23.97 kB / 1.35 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.112e-05/0.379, allocations: 15.92 kB / 1.35 GB, free: 8.027 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.379, allocations: 15.94 kB / 1.35 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.3792, allocations: 71.94 kB / 1.35 GB, free: 7.941 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 1.477e-05/0.3792, allocations: 3.984 kB / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3792, allocations: 0 / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.3792, allocations: 0 / 1.35 GB, free: 7.938 MB / 1.045 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.0005911/0.3798, allocations: 359.3 kB / 1.35 GB, free: 7.535 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3798, allocations: 15.98 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.3799, allocations: 38.73 kB / 1.35 GB, free: 7.473 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.3799, allocations: 4.938 kB / 1.35 GB, free: 7.469 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.3801, allocations: 168.3 kB / 1.35 GB, free: 7.266 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.3801, allocations: 8.375 kB / 1.35 GB, free: 7.258 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.3801, allocations: 4.375 kB / 1.35 GB, free: 7.254 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.3803, allocations: 66.16 kB / 1.35 GB, free: 7.184 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3803, allocations: 3.938 kB / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.3803, allocations: 0 / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3804, allocations: 0 / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3805, allocations: 43.95 kB / 1.35 GB, free: 7.137 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.381, allocations: 284.8 kB / 1.351 GB, free: 6.809 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.3812, allocations: 54.48 kB / 1.351 GB, free: 6.746 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.3813, allocations: 28.95 kB / 1.351 GB, free: 6.715 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.3813, allocations: 7.938 kB / 1.351 GB, free: 6.707 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.3816, allocations: 75.34 kB / 1.351 GB, free: 6.621 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.3816, allocations: 0 / 1.351 GB, free: 6.621 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004336/0.382, allocations: 113.6 kB / 1.351 GB, free: 6.504 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.382, allocations: 59.34 kB / 1.351 GB, free: 6.434 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.887e-05/0.3821, allocations: 109.8 kB / 1.351 GB, free: 6.316 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3822, allocations: 29.7 kB / 1.351 GB, free: 6.281 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.3822, allocations: 92.08 kB / 1.351 GB, free: 6.188 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.3822, allocations: 15.84 kB / 1.351 GB, free: 6.172 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.3823, allocations: 29.72 kB / 1.351 GB, free: 6.137 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3824, allocations: 318.8 kB / 1.352 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3826, allocations: 23.98 kB / 1.352 GB, free: 5.793 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.3827, allocations: 60.27 kB / 1.352 GB, free: 5.719 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.3829, allocations: 88.44 kB / 1.352 GB, free: 5.617 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3829, allocations: 3.938 kB / 1.352 GB, free: 5.613 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003032/0.3832, allocations: 117.5 kB / 1.352 GB, free: 5.492 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3832, allocations: 4 kB / 1.352 GB, free: 5.488 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3833, allocations: 4 kB / 1.352 GB, free: 5.484 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3833, allocations: 0 / 1.352 GB, free: 5.484 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3834, allocations: 20.14 kB / 1.352 GB, free: 5.465 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.3834, allocations: 3.938 kB / 1.352 GB, free: 5.461 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.964e-05/0.3835, allocations: 19.94 kB / 1.352 GB, free: 5.441 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.3835, allocations: 4 kB / 1.352 GB, free: 5.438 MB / 1.045 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.0001114/0.3836, allocations: 121.8 kB / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.3836, allocations: 0 / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000298/0.3839, allocations: 106 kB / 1.352 GB, free: 5.199 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3839, allocations: 0 / 1.352 GB, free: 5.199 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3839, allocations: 0 / 1.352 GB, free: 5.199 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3839, allocations: 3.938 kB / 1.352 GB, free: 5.195 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005048/0.3844, allocations: 354.5 kB / 1.353 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3844, allocations: 0 / 1.353 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.412e-05/0.3845, allocations: 11.98 kB / 1.353 GB, free: 4.781 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3845, allocations: 0 / 1.353 GB, free: 4.781 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.3845, allocations: 4 kB / 1.353 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3845, allocations: 4 kB / 1.353 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3845, allocations: 0 / 1.353 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.3848, allocations: 195.6 kB / 1.353 GB, free: 4.566 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.3849, allocations: 85 kB / 1.353 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.3849, allocations: 3.938 kB / 1.353 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.693e-05/0.385, allocations: 12.17 kB / 1.353 GB, free: 4.449 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.385, allocations: 7.938 kB / 1.353 GB, free: 4.441 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.385, allocations: 4 kB / 1.353 GB, free: 4.438 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.691e-05/0.3851, allocations: 91.58 kB / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3851, allocations: 0 / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000253/0.3854, allocations: 12 kB / 1.353 GB, free: 4.336 MB / 1.045 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.0007271/0.3861, allocations: 0.7241 MB / 1.354 GB, free: 3.586 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000281/0.3864, allocations: 63.89 kB / 1.354 GB, free: 3.523 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3864, allocations: 0 / 1.354 GB, free: 3.523 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.3865, allocations: 32.28 kB / 1.354 GB, free: 3.492 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.3868, allocations: 18.3 kB / 1.354 GB, free: 3.477 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.3886, allocations: 1.419 MB / 1.355 GB, free: 1.953 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.3889, allocations: 0.6807 MB / 1.356 GB, free: 1.246 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.174e-05/0.389, allocations: 4 kB / 1.356 GB, free: 1.242 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.389, allocations: 19.42 kB / 1.356 GB, free: 1.223 MB / 1.045 GB Notification: Performance of SimCode: time 3.21e-07/0.389, allocations: 4 kB / 1.356 GB, free: 1.219 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.4164, allocations: 1.787 MB / 1.358 GB, free: 15.54 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.244/8.661, allocations: 5.781 kB / 1.358 GB, free: 15.54 MB / 1.061 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable unitDelay1.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv. Warning: Get data of variable unitDelay1.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.748895362950861]