Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001569/0.001569, allocations: 101.6 kB / 16.45 MB, free: 6.5 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.001736/0.001736, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.517/1.517, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.872/2.872, allocations: 476.7 MB / 0.7672 GB, free: 5.215 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_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.001989/0.001989, allocations: 63.89 kB / 1.112 GB, free: 1.547 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.003/1.005, allocations: 169.9 MB / 1.278 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002148/1.007, allocations: 0.6754 MB / 1.279 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001506/1.009, allocations: 1.114 MB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/1.009, allocations: 4 kB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/1.009, allocations: 3.938 kB / 1.28 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.749e-05/1.009, allocations: 11.91 kB / 1.28 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/1.009, allocations: 47.83 kB / 1.28 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001095/1.009, allocations: 43.91 kB / 1.28 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.517e-05/1.009, allocations: 8 kB / 1.28 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.472e-05/1.009, allocations: 23.92 kB / 1.28 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.525e-05/1.009, allocations: 19.92 kB / 1.28 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/1.009, allocations: 7.984 kB / 1.28 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.56e-05/1.009, allocations: 31.92 kB / 1.28 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.062e-05/1.009, allocations: 11.92 kB / 1.28 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.141e-05/1.009, allocations: 23.92 kB / 1.28 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/1.01, allocations: 65.55 kB / 1.28 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/1.01, allocations: 0 / 1.28 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.02e-07/1.01, allocations: 0 / 1.28 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.045e-06/1.01, allocations: 0 / 1.28 GB, free: 11.32 MB / 0.9825 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.0006305/1.01, allocations: 375.3 kB / 1.281 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/1.01, allocations: 8.031 kB / 1.281 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.464e-05/1.01, allocations: 30.75 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.405e-05/1.01, allocations: 8.891 kB / 1.281 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/1.011, allocations: 172.4 kB / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/1.011, allocations: 4.312 kB / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/1.011, allocations: 4.375 kB / 1.281 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/1.011, allocations: 66.22 kB / 1.281 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/1.011, allocations: 3.938 kB / 1.281 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/1.011, allocations: 4 kB / 1.281 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/1.011, allocations: 0 / 1.281 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/1.011, allocations: 47.94 kB / 1.281 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004905/1.012, allocations: 280.7 kB / 1.281 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.012, allocations: 58.47 kB / 1.281 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/1.012, allocations: 32.95 kB / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/1.012, allocations: 8 kB / 1.281 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/1.012, allocations: 67.38 kB / 1.281 GB, free: 10 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/1.012, allocations: 0 / 1.281 GB, free: 10 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004527/1.013, allocations: 141.8 kB / 1.282 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/1.013, allocations: 55.41 kB / 1.282 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/1.013, allocations: 101.8 kB / 1.282 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/1.013, allocations: 29.7 kB / 1.282 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/1.013, allocations: 84.14 kB / 1.282 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/1.013, allocations: 23.83 kB / 1.282 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/1.013, allocations: 21.72 kB / 1.282 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001589/1.013, allocations: 326.8 kB / 1.282 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/1.013, allocations: 23.98 kB / 1.282 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/1.013, allocations: 56.27 kB / 1.282 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/1.013, allocations: 96.19 kB / 1.282 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.013, allocations: 0 / 1.282 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000295/1.014, allocations: 117.5 kB / 1.282 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/1.014, allocations: 8.125 kB / 1.282 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/1.014, allocations: 4.078 kB / 1.282 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/1.014, allocations: 256 / 1.282 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/1.014, allocations: 19.92 kB / 1.282 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/1.014, allocations: 11.98 kB / 1.282 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.632e-05/1.014, allocations: 15.92 kB / 1.282 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/1.014, allocations: 4 kB / 1.283 GB, free: 8.793 MB / 0.9825 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.0001034/1.014, allocations: 119.1 kB / 1.283 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/1.014, allocations: 7.953 kB / 1.283 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/1.014, allocations: 110 kB / 1.283 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/1.014, allocations: 0 / 1.283 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.014, allocations: 3.984 kB / 1.283 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/1.014, allocations: 0 / 1.283 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/1.015, allocations: 358.5 kB / 1.283 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/1.015, allocations: 0 / 1.283 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.394e-05/1.015, allocations: 19.92 kB / 1.283 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/1.015, allocations: 0 / 1.283 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/1.015, allocations: 4 kB / 1.283 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.015, allocations: 0 / 1.283 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/1.015, allocations: 0 / 1.283 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/1.015, allocations: 203.3 kB / 1.283 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.652e-05/1.015, allocations: 93.06 kB / 1.283 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/1.015, allocations: 0 / 1.283 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/1.016, allocations: 7.984 kB / 1.283 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/1.016, allocations: 7.938 kB / 1.283 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/1.016, allocations: 3.984 kB / 1.283 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.217e-05/1.016, allocations: 87.28 kB / 1.283 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/1.016, allocations: 0 / 1.283 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002519/1.016, allocations: 12.19 kB / 1.283 GB, free: 7.664 MB / 0.9825 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.0007126/1.017, allocations: 0.7423 MB / 1.284 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002806/1.017, allocations: 71.92 kB / 1.284 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.017, allocations: 4.25 kB / 1.284 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/1.017, allocations: 35.91 kB / 1.284 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/1.017, allocations: 7.938 kB / 1.284 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/1.019, allocations: 1.42 MB / 1.286 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/1.019, allocations: 0.6807 MB / 1.286 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.264e-05/1.019, allocations: 8 kB / 1.286 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.424e-05/1.02, allocations: 19.42 kB / 1.286 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/1.02, allocations: 0 / 1.286 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/1.045, allocations: 1.828 MB / 1.288 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/9.095, allocations: 6.016 kB / 1.288 GB, free: 2.805 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.433170095086098]