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.001696/0.001696, allocations: 109.3 kB / 16.46 MB, free: 6.453 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.002344/0.002344, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.589/1.589, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.272/3.272, allocations: 0.505 GB / 0.8066 GB, free: 23.05 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.001996/0.001996, allocations: 77.25 kB / 1.172 GB, free: 17.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4017, allocations: 180.2 MB / 1.348 GB, free: 10 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002098/0.4038, allocations: 0.6794 MB / 1.348 GB, free: 9.328 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.4053, allocations: 1.112 MB / 1.349 GB, free: 8.203 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.4053, allocations: 0 / 1.349 GB, free: 8.203 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.146e-05/0.4054, allocations: 3.938 kB / 1.35 GB, free: 8.199 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.172e-05/0.4055, allocations: 3.938 kB / 1.35 GB, free: 8.195 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.4057, allocations: 47.83 kB / 1.35 GB, free: 8.148 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.4059, allocations: 43.91 kB / 1.35 GB, free: 8.105 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.683e-05/0.406, allocations: 8 kB / 1.35 GB, free: 8.098 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.548e-05/0.406, allocations: 27.84 kB / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.991e-05/0.4061, allocations: 27.91 kB / 1.35 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.4061, allocations: 4 kB / 1.35 GB, free: 8.039 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.217e-05/0.4062, allocations: 27.92 kB / 1.35 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.567e-05/0.4062, allocations: 15.92 kB / 1.35 GB, free: 7.996 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.214e-05/0.4062, allocations: 19.92 kB / 1.35 GB, free: 7.977 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.4064, allocations: 64 kB / 1.35 GB, free: 7.914 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4064, allocations: 4 kB / 1.35 GB, free: 7.91 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4064, allocations: 0 / 1.35 GB, free: 7.91 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.4064, allocations: 0 / 1.35 GB, free: 7.91 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006505/0.4071, allocations: 371.2 kB / 1.35 GB, free: 7.496 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4071, allocations: 19.98 kB / 1.35 GB, free: 7.477 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.4071, allocations: 30.75 kB / 1.35 GB, free: 7.438 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.135e-05/0.4072, allocations: 8.922 kB / 1.35 GB, free: 7.43 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.4074, allocations: 172.2 kB / 1.35 GB, free: 7.223 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.4074, allocations: 8.375 kB / 1.35 GB, free: 7.215 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.4074, allocations: 4.375 kB / 1.35 GB, free: 7.211 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.4076, allocations: 62.22 kB / 1.35 GB, free: 7.145 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4076, allocations: 3.938 kB / 1.35 GB, free: 7.141 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.4076, allocations: 0 / 1.35 GB, free: 7.141 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.4076, allocations: 12 kB / 1.35 GB, free: 7.129 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.4078, allocations: 43.95 kB / 1.35 GB, free: 7.086 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004688/0.4083, allocations: 276.8 kB / 1.351 GB, free: 6.766 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.4085, allocations: 54.55 kB / 1.351 GB, free: 6.703 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.4086, allocations: 32.97 kB / 1.351 GB, free: 6.668 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.4086, allocations: 3.984 kB / 1.351 GB, free: 6.664 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.4088, allocations: 75.45 kB / 1.351 GB, free: 6.578 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4088, allocations: 0 / 1.351 GB, free: 6.578 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004477/0.4093, allocations: 133.5 kB / 1.351 GB, free: 6.441 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.4093, allocations: 55.39 kB / 1.351 GB, free: 6.375 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.652e-05/0.4094, allocations: 101.9 kB / 1.351 GB, free: 6.266 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.4094, allocations: 25.7 kB / 1.351 GB, free: 6.234 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.4095, allocations: 92.12 kB / 1.351 GB, free: 6.141 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.4095, allocations: 15.8 kB / 1.351 GB, free: 6.125 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.776e-05/0.4096, allocations: 29.7 kB / 1.351 GB, free: 6.09 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4097, allocations: 318.8 kB / 1.352 GB, free: 5.77 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.4098, allocations: 35.91 kB / 1.352 GB, free: 5.734 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.41, allocations: 60.2 kB / 1.352 GB, free: 5.66 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.4102, allocations: 88.2 kB / 1.352 GB, free: 5.559 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4102, allocations: 4.188 kB / 1.352 GB, free: 5.555 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000291/0.4105, allocations: 109.6 kB / 1.352 GB, free: 5.441 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4105, allocations: 7.938 kB / 1.352 GB, free: 5.434 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.4105, allocations: 4.125 kB / 1.352 GB, free: 5.43 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.4105, allocations: 7.984 kB / 1.352 GB, free: 5.422 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.4107, allocations: 19.92 kB / 1.352 GB, free: 5.402 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.4107, allocations: 0 / 1.352 GB, free: 5.402 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.36e-05/0.4108, allocations: 15.95 kB / 1.352 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.4108, allocations: 4 kB / 1.352 GB, free: 5.383 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 (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 0.000105/0.4109, allocations: 121.8 kB / 1.352 GB, free: 5.254 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.4109, allocations: 0 / 1.352 GB, free: 5.254 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003294/0.4112, allocations: 118.2 kB / 1.352 GB, free: 5.133 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.4112, allocations: 8.031 kB / 1.352 GB, free: 5.125 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4112, allocations: 0 / 1.352 GB, free: 5.125 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4112, allocations: 0 / 1.352 GB, free: 5.125 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00051/0.4117, allocations: 362.4 kB / 1.353 GB, free: 4.715 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4117, allocations: 0 / 1.353 GB, free: 4.715 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.4118, allocations: 15.98 kB / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.4118, allocations: 0 / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.4118, allocations: 4 kB / 1.353 GB, free: 4.695 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.4118, allocations: 256 / 1.353 GB, free: 4.695 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4118, allocations: 4 kB / 1.353 GB, free: 4.691 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.4122, allocations: 195.4 kB / 1.353 GB, free: 4.484 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.4122, allocations: 85 kB / 1.353 GB, free: 4.383 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.4122, allocations: 11.98 kB / 1.353 GB, free: 4.371 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4123, allocations: 8 kB / 1.353 GB, free: 4.363 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.4124, allocations: 7.922 kB / 1.353 GB, free: 4.355 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.4124, allocations: 7.938 kB / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.922e-05/0.4124, allocations: 83.28 kB / 1.353 GB, free: 4.266 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4124, allocations: 0 / 1.353 GB, free: 4.266 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002558/0.4127, allocations: 19.92 kB / 1.353 GB, free: 4.246 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 (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.000718/0.4134, allocations: 0.732 MB / 1.354 GB, free: 3.488 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.4137, allocations: 67.88 kB / 1.354 GB, free: 3.422 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.4137, allocations: 256 / 1.354 GB, free: 3.422 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.4138, allocations: 43.91 kB / 1.354 GB, free: 3.379 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.4141, allocations: 9.812 kB / 1.354 GB, free: 3.371 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.4159, allocations: 1.42 MB / 1.355 GB, free: 1.844 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.4163, allocations: 0.6807 MB / 1.356 GB, free: 1.137 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.425e-05/0.4163, allocations: 11.98 kB / 1.356 GB, free: 1.125 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.4164, allocations: 15.44 kB / 1.356 GB, free: 1.109 MB / 1.045 GB Notification: Performance of SimCode: time 3.21e-07/0.4164, allocations: 0 / 1.356 GB, free: 1.109 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.4458, allocations: 1.829 MB / 1.358 GB, free: 15.4 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.385/8.831, allocations: 5.5 kB / 1.358 GB, free: 15.39 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.92161000915803]