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.001292/0.001292, allocations: 101.5 kB / 16.45 MB, free: 6.5 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.001384/0.001384, allocations: 210.4 kB / 19.43 MB, free: 3.656 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 / 252.8 MB, free: 8.961 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.914/2.914, allocations: 476.7 MB / 0.7672 GB, free: 5.215 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.00201/0.00201, allocations: 63.91 kB / 1.112 GB, free: 1.559 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9204/0.9225, allocations: 169.9 MB / 1.278 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002101/0.9246, allocations: 0.6832 MB / 1.279 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.9261, allocations: 1.098 MB / 1.28 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.579e-05/0.9261, allocations: 4 kB / 1.28 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.173e-05/0.9262, allocations: 3.938 kB / 1.28 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.9262, allocations: 3.938 kB / 1.28 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.9265, allocations: 39.89 kB / 1.28 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.9266, allocations: 43.86 kB / 1.28 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.9268, allocations: 11.98 kB / 1.28 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.012e-05/0.9268, allocations: 19.92 kB / 1.28 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.567e-05/0.9269, allocations: 23.91 kB / 1.28 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.9269, allocations: 4 kB / 1.28 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.654e-05/0.927, allocations: 19.98 kB / 1.28 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.657e-05/0.927, allocations: 4 kB / 1.28 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.927, allocations: 27.84 kB / 1.28 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.9272, allocations: 49.64 kB / 1.28 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.9272, allocations: 3.938 kB / 1.28 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9272, allocations: 0 / 1.28 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.9272, allocations: 0 / 1.28 GB, free: 11.39 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.0006747/0.9279, allocations: 363.3 kB / 1.281 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.9279, allocations: 12.03 kB / 1.281 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.928, allocations: 34.69 kB / 1.281 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.79e-05/0.9281, allocations: 12.88 kB / 1.281 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.9283, allocations: 164.4 kB / 1.281 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.9283, allocations: 8.375 kB / 1.281 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.9283, allocations: 384 / 1.281 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.9285, allocations: 62.23 kB / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.9285, allocations: 3.938 kB / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.9285, allocations: 0 / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.9286, allocations: 4 kB / 1.281 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.9288, allocations: 43.83 kB / 1.281 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.9293, allocations: 280.8 kB / 1.281 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.9295, allocations: 42.56 kB / 1.281 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.9296, allocations: 24.92 kB / 1.281 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.9296, allocations: 4 kB / 1.281 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.9298, allocations: 71.33 kB / 1.281 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.9298, allocations: 0 / 1.281 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0004367/0.9302, allocations: 109.6 kB / 1.281 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.9303, allocations: 51.41 kB / 1.281 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.9304, allocations: 109.8 kB / 1.282 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.9305, allocations: 25.7 kB / 1.282 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.998e-05/0.9305, allocations: 92.08 kB / 1.282 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.9306, allocations: 7.906 kB / 1.282 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.9306, allocations: 29.7 kB / 1.282 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001981/0.9308, allocations: 318.8 kB / 1.282 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.9309, allocations: 28.16 kB / 1.282 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.9311, allocations: 51.39 kB / 1.282 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.9313, allocations: 79.34 kB / 1.282 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.9313, allocations: 0 / 1.282 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002869/0.9316, allocations: 97.7 kB / 1.282 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.9316, allocations: 12 kB / 1.282 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.9316, allocations: 0 / 1.282 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.9316, allocations: 0 / 1.282 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.9318, allocations: 15.98 kB / 1.282 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.9318, allocations: 0 / 1.282 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.79e-05/0.9318, allocations: 7.953 kB / 1.282 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.9319, allocations: 11.92 kB / 1.282 GB, free: 8.992 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 0.0001113/0.932, allocations: 121.7 kB / 1.282 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.932, allocations: 4 kB / 1.282 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000302/0.9323, allocations: 89.61 kB / 1.283 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.9323, allocations: 4 kB / 1.283 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.9323, allocations: 0 / 1.283 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.9323, allocations: 0 / 1.283 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000496/0.9328, allocations: 342.4 kB / 1.283 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.9328, allocations: 4 kB / 1.283 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.474e-05/0.9329, allocations: 11.98 kB / 1.283 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.9329, allocations: 0 / 1.283 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.9329, allocations: 4 kB / 1.283 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.9329, allocations: 3.938 kB / 1.283 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.9329, allocations: 4 kB / 1.283 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.9332, allocations: 191.3 kB / 1.283 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.887e-05/0.9333, allocations: 85.23 kB / 1.283 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.9333, allocations: 8 kB / 1.283 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.128e-05/0.9334, allocations: 4 kB / 1.283 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.9334, allocations: 7.922 kB / 1.283 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.9334, allocations: 4 kB / 1.283 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.018e-05/0.9335, allocations: 87.73 kB / 1.283 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.9335, allocations: 0 / 1.283 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002396/0.9337, allocations: 8 kB / 1.283 GB, free: 7.91 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.0007113/0.9344, allocations: 0.721 MB / 1.284 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000278/0.9347, allocations: 56.02 kB / 1.284 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.9347, allocations: 0 / 1.284 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.9348, allocations: 27.92 kB / 1.284 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.9351, allocations: 19.86 kB / 1.284 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.9369, allocations: 1.377 MB / 1.285 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.9373, allocations: 0.6807 MB / 1.286 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.285e-05/0.9373, allocations: 8 kB / 1.286 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.9373, allocations: 19.42 kB / 1.286 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.9373, allocations: 0 / 1.286 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.9651, allocations: 1.72 MB / 1.288 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/9.101, allocations: 13.2 kB / 1.288 GB, free: 3.23 MB / 0.9825 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_11_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_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.csv","/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: 15.37711378117092]