Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001347/0.001347, allocations: 110.4 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.001562/0.001562, allocations: 217.5 kB / 22.25 MB, free: 5.121 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.988 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.258/3.258, allocations: 0.505 GB / 0.8101 GB, free: 21.98 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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.002017/0.002017, allocations: 67.73 kB / 1.177 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3369, allocations: 180.2 MB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001813/0.3387, allocations: 0.7025 MB / 1.354 GB, free: 7.719 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3401, allocations: 1.124 MB / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.3401, allocations: 0 / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.818e-05/0.3402, allocations: 3.938 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.295e-05/0.3402, allocations: 11.92 kB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.3405, allocations: 47.83 kB / 1.355 GB, free: 6.52 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.3406, allocations: 71.83 kB / 1.355 GB, free: 6.449 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.81e-05/0.3407, allocations: 8 kB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.115e-05/0.3407, allocations: 31.91 kB / 1.355 GB, free: 6.41 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.576e-05/0.3408, allocations: 31.84 kB / 1.355 GB, free: 6.379 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.3408, allocations: 8 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.505e-05/0.3409, allocations: 23.98 kB / 1.355 GB, free: 6.348 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.345e-05/0.3409, allocations: 15.97 kB / 1.355 GB, free: 6.332 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.341, allocations: 31.86 kB / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.3411, allocations: 79.97 kB / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.3411, allocations: 0 / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3411, allocations: 0 / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3411, allocations: 0 / 1.355 GB, free: 6.223 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005938/0.3417, allocations: 310.1 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3418, allocations: 12.03 kB / 1.355 GB, free: 5.875 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.3418, allocations: 42.67 kB / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.483e-05/0.3419, allocations: 8.891 kB / 1.355 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.342, allocations: 106.5 kB / 1.355 GB, free: 5.688 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.342, allocations: 8.375 kB / 1.355 GB, free: 5.68 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.342, allocations: 12.3 kB / 1.355 GB, free: 5.668 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.3422, allocations: 82.16 kB / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3423, allocations: 3.938 kB / 1.356 GB, free: 5.578 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.3423, allocations: 4 kB / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3423, allocations: 0 / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.3425, allocations: 59.88 kB / 1.356 GB, free: 5.516 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.343, allocations: 287.8 kB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.3432, allocations: 74.53 kB / 1.356 GB, free: 5.109 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.3433, allocations: 36.84 kB / 1.356 GB, free: 5.07 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.3433, allocations: 4.172 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.3436, allocations: 91.31 kB / 1.356 GB, free: 4.965 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.3436, allocations: 0 / 1.356 GB, free: 4.965 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0005028/0.3441, allocations: 173.5 kB / 1.356 GB, free: 4.789 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.3441, allocations: 55.41 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.245e-05/0.3442, allocations: 109.8 kB / 1.356 GB, free: 4.605 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.3442, allocations: 29.7 kB / 1.356 GB, free: 4.57 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.3443, allocations: 92.36 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.3443, allocations: 23.8 kB / 1.357 GB, free: 4.449 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.3444, allocations: 37.7 kB / 1.357 GB, free: 4.406 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3445, allocations: 318.8 kB / 1.357 GB, free: 4.086 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3446, allocations: 39.97 kB / 1.357 GB, free: 4.047 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.3448, allocations: 58.48 kB / 1.357 GB, free: 3.98 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.345, allocations: 110.5 kB / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.345, allocations: 256 / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00032/0.3453, allocations: 141.5 kB / 1.357 GB, free: 3.719 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3453, allocations: 8.062 kB / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3454, allocations: 4.375 kB / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3454, allocations: 4 kB / 1.357 GB, free: 3.703 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.3455, allocations: 19.92 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.3455, allocations: 4 kB / 1.357 GB, free: 3.68 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.474e-05/0.3456, allocations: 19.88 kB / 1.357 GB, free: 3.66 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.3456, allocations: 4 kB / 1.357 GB, free: 3.656 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001035/0.3457, allocations: 134.3 kB / 1.357 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.3457, allocations: 7.953 kB / 1.357 GB, free: 3.508 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003453/0.3461, allocations: 149.9 kB / 1.358 GB, free: 3.355 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3461, allocations: 0 / 1.358 GB, free: 3.355 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3461, allocations: 0 / 1.358 GB, free: 3.355 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3461, allocations: 3.984 kB / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.3466, allocations: 385.4 kB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3466, allocations: 4 kB / 1.358 GB, free: 2.922 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.481e-05/0.3467, allocations: 8 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.3467, allocations: 3.984 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.3467, allocations: 0 / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3467, allocations: 0 / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3467, allocations: 4 kB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.3471, allocations: 239.3 kB / 1.358 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.373e-05/0.3471, allocations: 11.94 kB / 1.358 GB, free: 2.645 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.3471, allocations: 0 / 1.358 GB, free: 2.645 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.3472, allocations: 11.98 kB / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.3473, allocations: 11.92 kB / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.3473, allocations: 4 kB / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.3473, allocations: 83.28 kB / 1.358 GB, free: 2.535 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3473, allocations: 288 / 1.358 GB, free: 2.535 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002576/0.3476, allocations: 20 kB / 1.358 GB, free: 2.516 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006923/0.3483, allocations: 0.7763 MB / 1.359 GB, free: 1.715 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003015/0.3486, allocations: 95.94 kB / 1.359 GB, free: 1.621 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3486, allocations: 4.062 kB / 1.359 GB, free: 1.617 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.3487, allocations: 43.91 kB / 1.359 GB, free: 1.574 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.349, allocations: 7.938 kB / 1.359 GB, free: 1.566 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.3509, allocations: 1.506 MB / 1.361 GB, free: 15.97 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3512, allocations: 0.6923 MB / 1.361 GB, free: 15.25 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.834e-05/0.3512, allocations: 12.55 kB / 1.361 GB, free: 15.24 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.3513, allocations: 19.42 kB / 1.361 GB, free: 15.22 MB / 1.061 GB Notification: Performance of SimCode: time 6.52e-07/0.3513, allocations: 0 / 1.361 GB, free: 15.22 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.3797, allocations: 2.21 MB / 1.364 GB, free: 13.15 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.24, allocations: 14.23 kB / 1.364 GB, free: 13.14 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.05808785599993]