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.00135/0.00135, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.0016/0.0016, allocations: 218 kB / 22.25 MB, free: 5.258 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.498/1.498, 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 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.281/3.281, allocations: 0.49 GB / 0.7951 GB, free: 35.51 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.002074/0.002074, allocations: 67.58 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3703, allocations: 176.1 MB / 1.326 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002122/0.3724, allocations: 0.6634 MB / 1.326 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.3742, allocations: 1.093 MB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.3742, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.613e-05/0.3743, allocations: 3.938 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.942e-05/0.3743, allocations: 3.938 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.3747, allocations: 51.83 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.3748, allocations: 47.84 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3749, allocations: 8 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.075e-05/0.375, allocations: 23.92 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.909e-05/0.3751, allocations: 19.91 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.3751, allocations: 8 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.494e-05/0.3752, allocations: 19.98 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.3752, allocations: 11.94 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.421e-05/0.3752, allocations: 19.92 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.3754, allocations: 64 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3754, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3754, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.216e-06/0.3754, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 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.0006524/0.3761, allocations: 287.9 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3761, allocations: 8.031 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/0.3762, allocations: 42.75 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.3763, allocations: 4.875 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.3764, allocations: 118.4 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.3764, allocations: 8.375 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.3765, allocations: 4.375 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.3767, allocations: 58.23 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3767, allocations: 7.875 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3767, allocations: 4 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3767, allocations: 0 / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.3769, allocations: 47.94 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.3774, allocations: 247.9 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.3776, allocations: 54.53 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.884e-05/0.3777, allocations: 28.97 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.3777, allocations: 0 / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.378, allocations: 75.38 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.378, allocations: 3.938 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004434/0.3784, allocations: 117.6 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.3785, allocations: 55.41 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3786, allocations: 113.8 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3786, allocations: 25.7 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.3787, allocations: 88.14 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.3787, allocations: 15.84 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.3788, allocations: 29.7 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.379, allocations: 318.8 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-05/0.3791, allocations: 23.97 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.3792, allocations: 64.2 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3794, allocations: 92.19 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3794, allocations: 0 / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002623/0.3797, allocations: 113.4 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3797, allocations: 4 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3797, allocations: 4 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3797, allocations: 0 / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.3798, allocations: 20.14 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.3798, allocations: 3.984 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.288e-05/0.3799, allocations: 12 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.3799, allocations: 4 kB / 1.33 GB, free: 13.11 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 0.000108/0.38, allocations: 118.3 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.38, allocations: 11.88 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002918/0.3803, allocations: 102 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.3803, allocations: 0 / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3803, allocations: 4.312 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3803, allocations: 0 / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004669/0.3808, allocations: 329.7 kB / 1.33 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3808, allocations: 0 / 1.33 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.04e-05/0.3809, allocations: 15.92 kB / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3809, allocations: 0 / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.669e-06/0.3809, allocations: 0 / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3809, allocations: 0 / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3809, allocations: 0 / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.3812, allocations: 207.3 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.236e-06/0.3812, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.3812, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.896e-05/0.3813, allocations: 7.984 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.3814, allocations: 11.92 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.3814, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.482e-05/0.3814, allocations: 87.28 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3814, allocations: 0 / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002679/0.3817, allocations: 15.95 kB / 1.331 GB, free: 12.13 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.0007403/0.3825, allocations: 0.7281 MB / 1.331 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000256/0.3827, allocations: 63.89 kB / 1.331 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3827, allocations: 0 / 1.331 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.3828, allocations: 28.23 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.3831, allocations: 15.92 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.3849, allocations: 1.411 MB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.934e-05/0.3849, allocations: 79.23 kB / 1.333 GB, free: 9.664 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.143e-05/0.385, allocations: 4 kB / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.346e-05/0.385, allocations: 11.44 kB / 1.333 GB, free: 9.648 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.385, allocations: 0 / 1.333 GB, free: 9.648 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03097/0.416, allocations: 2.368 MB / 1.335 GB, free: 7.414 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.52, allocations: 8.156 kB / 1.335 GB, free: 7.41 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 & python3 -m fmpy simulate --output-file Buildings_12_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_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.csv","/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] "Error: Could not read variable unitDelay1.u in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv. Warning: Get data of variable unitDelay1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.42728509500739]