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.001701/0.001701, allocations: 110.6 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.001606/0.001606, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.969 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.283/3.283, allocations: 0.505 GB / 0.8101 GB, free: 22.03 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.002111/0.002111, allocations: 68.14 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4196, allocations: 180.2 MB / 1.353 GB, free: 8.445 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002155/0.4218, allocations: 0.6797 MB / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00151/0.4233, allocations: 1.112 MB / 1.355 GB, free: 6.645 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.746e-05/0.4234, allocations: 4 kB / 1.355 GB, free: 6.641 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.4234, allocations: 3.938 kB / 1.355 GB, free: 6.637 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.08e-05/0.4235, allocations: 7.922 kB / 1.355 GB, free: 6.629 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.4238, allocations: 43.84 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000116/0.4239, allocations: 47.89 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.424, allocations: 4 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.457e-05/0.424, allocations: 23.92 kB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.916e-05/0.4241, allocations: 19.92 kB / 1.355 GB, free: 6.492 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.4241, allocations: 4 kB / 1.355 GB, free: 6.488 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.76e-05/0.4242, allocations: 27.98 kB / 1.355 GB, free: 6.461 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.264e-05/0.4242, allocations: 15.91 kB / 1.355 GB, free: 6.445 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.674e-05/0.4243, allocations: 15.94 kB / 1.355 GB, free: 6.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.4244, allocations: 67.94 kB / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4244, allocations: 0 / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.096e-06/0.4244, allocations: 0 / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.4244, allocations: 0 / 1.355 GB, free: 6.363 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.0005601/0.425, allocations: 286.2 kB / 1.355 GB, free: 6.051 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.425, allocations: 12.03 kB / 1.355 GB, free: 6.039 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.4251, allocations: 42.73 kB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.131e-05/0.4252, allocations: 4.938 kB / 1.355 GB, free: 5.984 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.4253, allocations: 114.4 kB / 1.355 GB, free: 5.848 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.4253, allocations: 384 / 1.355 GB, free: 5.848 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.4253, allocations: 8.375 kB / 1.355 GB, free: 5.84 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.4255, allocations: 62.16 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4255, allocations: 3.938 kB / 1.355 GB, free: 5.77 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.4255, allocations: 4 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.4255, allocations: 4 kB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.4257, allocations: 39.95 kB / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004926/0.4262, allocations: 255.9 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.4264, allocations: 54.48 kB / 1.356 GB, free: 5.367 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.706e-05/0.4265, allocations: 28.97 kB / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.4265, allocations: 0 / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.4267, allocations: 79.27 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.4267, allocations: 0 / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004085/0.4271, allocations: 125.8 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.4272, allocations: 59.34 kB / 1.356 GB, free: 5.047 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.434e-05/0.4273, allocations: 105.8 kB / 1.356 GB, free: 4.934 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.4273, allocations: 25.7 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.4274, allocations: 92.09 kB / 1.356 GB, free: 4.809 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.4274, allocations: 15.84 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.677e-05/0.4274, allocations: 25.7 kB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4276, allocations: 322.8 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.4277, allocations: 31.91 kB / 1.357 GB, free: 4.406 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.4278, allocations: 52.27 kB / 1.357 GB, free: 4.34 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.428, allocations: 96.19 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.428, allocations: 0 / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003009/0.4283, allocations: 101.5 kB / 1.357 GB, free: 4.125 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4284, allocations: 8.156 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4284, allocations: 4 kB / 1.357 GB, free: 4.113 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.4284, allocations: 7.984 kB / 1.357 GB, free: 4.105 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.4285, allocations: 15.98 kB / 1.357 GB, free: 4.09 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.4285, allocations: 7.938 kB / 1.357 GB, free: 4.082 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.101e-05/0.4286, allocations: 11.94 kB / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.4286, allocations: 4 kB / 1.357 GB, free: 4.066 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.0001115/0.4287, allocations: 121.7 kB / 1.357 GB, free: 3.938 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.4287, allocations: 7.984 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002751/0.429, allocations: 98.03 kB / 1.357 GB, free: 3.828 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.429, allocations: 3.984 kB / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.429, allocations: 0 / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.429, allocations: 3.938 kB / 1.357 GB, free: 3.82 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004642/0.4295, allocations: 325.5 kB / 1.357 GB, free: 3.453 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4295, allocations: 0 / 1.357 GB, free: 3.453 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.874e-05/0.4295, allocations: 11.98 kB / 1.357 GB, free: 3.441 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.4295, allocations: 4 kB / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.4295, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4295, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4295, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.4298, allocations: 199.6 kB / 1.358 GB, free: 3.227 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.4299, allocations: 12.14 kB / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.4299, allocations: 0 / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/0.43, allocations: 15.92 kB / 1.358 GB, free: 3.199 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.43, allocations: 11.92 kB / 1.358 GB, free: 3.188 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.43, allocations: 0 / 1.358 GB, free: 3.188 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.819e-05/0.4301, allocations: 87.34 kB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4301, allocations: 0 / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002456/0.4303, allocations: 12 kB / 1.358 GB, free: 3.09 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.0007227/0.431, allocations: 0.7241 MB / 1.358 GB, free: 2.34 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.4313, allocations: 71.83 kB / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4313, allocations: 4.312 kB / 1.359 GB, free: 2.266 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.4314, allocations: 23.98 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.4317, allocations: 15.92 kB / 1.359 GB, free: 2.227 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.4334, allocations: 1.401 MB / 1.36 GB, free: 0.7188 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.4338, allocations: 0.69 MB / 1.361 GB, free: 4 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.192e-05/0.4338, allocations: 4 kB / 1.361 GB, free: 0 / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.626e-05/0.4339, allocations: 19.48 kB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.4339, allocations: 0 / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.4649, allocations: 1.921 MB / 1.363 GB, free: 14.2 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.25, allocations: 2.891 kB / 1.363 GB, free: 14.2 MB / 1.061 GB " [Timeout remaining time 289] (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: 18.195100061000176]