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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00795/0.00795, allocations: 98.98 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 189.9 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.639/2.639, allocations: 469.4 MB / 0.7422 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.91 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6672/0.6685, allocations: 159.1 MB / 1.22 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001789/0.6703, allocations: 0.6786 MB / 1.22 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.6716, allocations: 1.057 MB / 1.221 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.46e-05/0.6717, allocations: 0 / 1.221 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.6717, allocations: 3.938 kB / 1.221 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.507e-05/0.6718, allocations: 15.86 kB / 1.221 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.6721, allocations: 47.83 kB / 1.221 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000101/0.6722, allocations: 51.84 kB / 1.222 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.483e-05/0.6723, allocations: 11.98 kB / 1.222 GB, free: 384 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.771e-05/0.6723, allocations: 23.92 kB / 1.222 GB, free: 360 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.038e-05/0.6724, allocations: 15.92 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.6724, allocations: 4 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.6725, allocations: 19.98 kB / 1.222 GB, free: 320 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.6725, allocations: 11.97 kB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.546e-05/0.6726, allocations: 27.88 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.6727, allocations: 58.5 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.6727, allocations: 7.938 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6727, allocations: 0 / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.6727, allocations: 0 / 1.222 GB, free: 216 kB / 0.9356 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.0005775/0.6733, allocations: 368.2 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.6733, allocations: 16.56 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.6734, allocations: 34.73 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.898e-05/0.6734, allocations: 8.875 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.814e-05/0.6735, allocations: 168.3 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.6735, allocations: 384 / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.6736, allocations: 8.375 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.6738, allocations: 66.22 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.6738, allocations: 3.938 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.6738, allocations: 0 / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.6738, allocations: 0 / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.674, allocations: 47.95 kB / 1.222 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004027/0.6744, allocations: 284.8 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.6746, allocations: 54.55 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.6747, allocations: 32.95 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.6748, allocations: 8 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.675, allocations: 79.27 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.675, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004119/0.6754, allocations: 117.6 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.6754, allocations: 55.41 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.035e-05/0.6755, allocations: 109.8 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.6755, allocations: 25.7 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.6756, allocations: 88.12 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.6756, allocations: 27.86 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.333e-05/0.6757, allocations: 25.7 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.336e-05/0.6758, allocations: 318.8 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.6759, allocations: 27.97 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.676, allocations: 64.2 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.6762, allocations: 92.2 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6762, allocations: 0 / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002823/0.6765, allocations: 113.5 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.6765, allocations: 11.94 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.6766, allocations: 0 / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.6766, allocations: 0 / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.6767, allocations: 32.34 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.6767, allocations: 0 / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.177e-05/0.6768, allocations: 8 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.6768, allocations: 4.188 kB / 1.224 GB, free: 13.69 MB / 0.9512 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 8.809e-05/0.6769, allocations: 128 kB / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.6769, allocations: 11.89 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002811/0.6772, allocations: 102 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.6772, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.6772, allocations: 0 / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.6772, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.6777, allocations: 362.4 kB / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6777, allocations: 0 / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.6778, allocations: 15.98 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.6778, allocations: 0 / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.6778, allocations: 4 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.6778, allocations: 0 / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.6778, allocations: 0 / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.6781, allocations: 203.8 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.435e-05/0.6781, allocations: 81.11 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.6782, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.6783, allocations: 11.98 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.6783, allocations: 11.92 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.6783, allocations: 4 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.6784, allocations: 83.28 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6784, allocations: 0 / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002562/0.6786, allocations: 19.98 kB / 1.225 GB, free: 12.55 MB / 0.9512 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.000632/0.6793, allocations: 0.7398 MB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002759/0.6796, allocations: 67.94 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.6796, allocations: 0 / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.6797, allocations: 39.84 kB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.68, allocations: 16.28 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.6816, allocations: 1.419 MB / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.6819, allocations: 0.6845 MB / 1.228 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.505e-05/0.6819, allocations: 8.078 kB / 1.228 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/0.682, allocations: 19.38 kB / 1.228 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.682, allocations: 4 kB / 1.228 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/0.6989, allocations: 1.824 MB / 1.23 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.304/8.003, allocations: 11.94 kB / 1.23 GB, free: 7.691 MB / 0.9512 GB (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 50 --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) 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) Reference file matches