Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001852/0.001852, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00228/0.00228, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.533/1.533, allocations: 230.6 MB / 256 MB, free: 7.805 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.473/3.473, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.001995/0.001995, allocations: 78.7 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3617, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001924/0.3636, allocations: 0.6764 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001481/0.3651, allocations: 1.089 MB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.3651, allocations: 0 / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.122e-05/0.3652, allocations: 3.938 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.231e-05/0.3652, allocations: 11.92 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/0.3655, allocations: 47.83 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.3656, allocations: 51.78 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.012e-05/0.3657, allocations: 12 kB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.195e-05/0.3658, allocations: 19.92 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.3658, allocations: 23.91 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.3659, allocations: 4 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.223e-05/0.3659, allocations: 19.98 kB / 1.365 GB, free: 12.15 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.456e-05/0.366, allocations: 11.98 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.994e-05/0.366, allocations: 19.88 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.3662, allocations: 64.05 kB / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3662, allocations: 0 / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3662, allocations: 0 / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3662, allocations: 0 / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006018/0.3668, allocations: 294.2 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3668, allocations: 11.97 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.689e-05/0.3668, allocations: 34.75 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.919e-05/0.3669, allocations: 12.88 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.367, allocations: 110.4 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.367, allocations: 8.375 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3671, allocations: 4.375 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.3673, allocations: 66.2 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3673, allocations: 7.938 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.3673, allocations: 0 / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3673, allocations: 7.938 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.3675, allocations: 43.95 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.3679, allocations: 239.9 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.3681, allocations: 54.55 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3682, allocations: 34.02 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3682, allocations: 0 / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.3685, allocations: 79.33 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3685, allocations: 0 / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.3689, allocations: 125.6 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.3689, allocations: 55.41 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.369, allocations: 101.9 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.369, allocations: 37.69 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/0.3691, allocations: 84.09 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.3691, allocations: 19.84 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/0.3691, allocations: 25.7 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3693, allocations: 318.8 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.893e-05/0.3694, allocations: 27.97 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.3695, allocations: 64.2 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.3697, allocations: 100.2 kB / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3697, allocations: 0 / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002716/0.37, allocations: 113.5 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.37, allocations: 4 kB / 1.367 GB, free: 9.789 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.37, allocations: 8.125 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.37, allocations: 3.938 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3701, allocations: 15.98 kB / 1.367 GB, free: 9.762 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3701, allocations: 4 kB / 1.367 GB, free: 9.758 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.703e-05/0.3702, allocations: 4 kB / 1.367 GB, free: 9.754 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.3702, allocations: 12.17 kB / 1.367 GB, free: 9.742 MB / 1.061 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.791e-05/0.3703, allocations: 117.8 kB / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.3703, allocations: 11.89 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.3706, allocations: 110 kB / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3706, allocations: 256 / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3706, allocations: 0 / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3706, allocations: 4 kB / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.3711, allocations: 329.5 kB / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3711, allocations: 3.938 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.251e-05/0.3712, allocations: 11.98 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3712, allocations: 0 / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.3712, allocations: 0 / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3712, allocations: 4 kB / 1.368 GB, free: 9.094 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3712, allocations: 0 / 1.368 GB, free: 9.094 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.3715, allocations: 207.8 kB / 1.368 GB, free: 8.875 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-06/0.3715, allocations: 3.938 kB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3715, allocations: 4 kB / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.782e-05/0.3716, allocations: 11.92 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.3717, allocations: 11.92 kB / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3717, allocations: 4 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.3717, allocations: 83.28 kB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3717, allocations: 0 / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002544/0.372, allocations: 19.98 kB / 1.368 GB, free: 8.738 MB / 1.061 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000659/0.3726, allocations: 0.7281 MB / 1.369 GB, free: 7.984 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002611/0.3729, allocations: 67.89 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3729, allocations: 4.25 kB / 1.369 GB, free: 7.914 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.373, allocations: 35.91 kB / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.3733, allocations: 13.66 kB / 1.369 GB, free: 7.867 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.375, allocations: 1.42 MB / 1.371 GB, free: 6.344 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.223e-05/0.3751, allocations: 63.34 kB / 1.371 GB, free: 6.262 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.718e-05/0.3751, allocations: 8.219 kB / 1.371 GB, free: 6.254 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.3751, allocations: 19.38 kB / 1.371 GB, free: 6.234 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.3751, allocations: 0 / 1.371 GB, free: 6.234 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.406, allocations: 2.372 MB / 1.373 GB, free: 4 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.75, allocations: 9.828 kB / 1.373 GB, free: 3.992 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_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_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zerOrdHol.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.953521778807044]