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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 110.9 kB / 17.93 MB, free: 3.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 200.4 kB / 21.18 MB, free: 0.6875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.6 MB / 249.9 MB, free: 13.38 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.754/2.754, allocations: 476.7 MB / 0.7634 GB, free: 10.91 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_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: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 71.88 kB / 1.108 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8954/0.8977, allocations: 168.7 MB / 1.272 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002417/0.9001, allocations: 0.668 MB / 1.273 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.9019, allocations: 1.073 MB / 1.274 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.441e-05/0.9019, allocations: 4 kB / 1.274 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.984e-05/0.9019, allocations: 0 / 1.274 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.755e-05/0.902, allocations: 7.875 kB / 1.274 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.9024, allocations: 47.88 kB / 1.274 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.9025, allocations: 47.86 kB / 1.274 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.9026, allocations: 7.984 kB / 1.274 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.9e-05/0.9027, allocations: 23.92 kB / 1.274 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.342e-05/0.9028, allocations: 23.91 kB / 1.274 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.9028, allocations: 7.938 kB / 1.274 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.256e-05/0.9029, allocations: 15.98 kB / 1.274 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.9029, allocations: 19.92 kB / 1.274 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.97e-05/0.903, allocations: 15.94 kB / 1.274 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.9031, allocations: 73.47 kB / 1.274 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.9031, allocations: 0 / 1.274 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9032, allocations: 0 / 1.274 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.9032, allocations: 0 / 1.274 GB, free: 2.355 MB / 0.9669 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.000698/0.9039, allocations: 363.3 kB / 1.275 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.9039, allocations: 12.03 kB / 1.275 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.9039, allocations: 42.73 kB / 1.275 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.904, allocations: 4.938 kB / 1.275 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.9041, allocations: 164.3 kB / 1.275 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.9042, allocations: 4.375 kB / 1.275 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.9042, allocations: 8.375 kB / 1.275 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.9044, allocations: 62.22 kB / 1.275 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.9044, allocations: 7.875 kB / 1.275 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.9044, allocations: 0 / 1.275 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.9044, allocations: 4 kB / 1.275 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.9046, allocations: 43.95 kB / 1.275 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.9052, allocations: 284.8 kB / 1.275 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.9053, allocations: 56.09 kB / 1.275 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.9054, allocations: 32.91 kB / 1.275 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.9055, allocations: 3.984 kB / 1.275 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.9057, allocations: 75.34 kB / 1.275 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.9057, allocations: 0 / 1.275 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004416/0.9062, allocations: 121.9 kB / 1.276 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.9062, allocations: 59.39 kB / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.871e-05/0.9063, allocations: 101.9 kB / 1.276 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.9064, allocations: 33.64 kB / 1.276 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.9064, allocations: 88.12 kB / 1.276 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.9064, allocations: 19.8 kB / 1.276 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.009e-05/0.9065, allocations: 25.7 kB / 1.276 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.9067, allocations: 322.8 kB / 1.276 GB, free: 232 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.9068, allocations: 27.97 kB / 1.276 GB, free: 204 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.9069, allocations: 68.2 kB / 1.276 GB, free: 120 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.9072, allocations: 88.39 kB / 1.276 GB, free: 16 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.9072, allocations: 4 kB / 1.276 GB, free: 12 kB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003209/0.9075, allocations: 121.5 kB / 1.276 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.9075, allocations: 4 kB / 1.276 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.9075, allocations: 80 / 1.276 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.9075, allocations: 12.11 kB / 1.276 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.9076, allocations: 15.98 kB / 1.276 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.9077, allocations: 3.984 kB / 1.277 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.9077, allocations: 8 kB / 1.277 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.9077, allocations: 8 kB / 1.277 GB, free: 15.83 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.0001073/0.9078, allocations: 125.7 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.9079, allocations: 4 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003158/0.9082, allocations: 114 kB / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.9082, allocations: 0 / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.9082, allocations: 0 / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.9082, allocations: 0 / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005181/0.9087, allocations: 362.4 kB / 1.277 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.9087, allocations: 0 / 1.277 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.566e-05/0.9088, allocations: 11.98 kB / 1.277 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.9088, allocations: 4 kB / 1.277 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.9088, allocations: 4 kB / 1.277 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9088, allocations: 0 / 1.277 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.9088, allocations: 256 / 1.277 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003433/0.9091, allocations: 203.3 kB / 1.277 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/0.9092, allocations: 77.11 kB / 1.277 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.9092, allocations: 11.98 kB / 1.277 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.869e-05/0.9093, allocations: 8 kB / 1.277 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.9094, allocations: 15.91 kB / 1.277 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.9094, allocations: 4 kB / 1.277 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.997e-05/0.9094, allocations: 83.28 kB / 1.277 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.9094, allocations: 0 / 1.277 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002534/0.9097, allocations: 15.98 kB / 1.278 GB, free: 14.7 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.0007282/0.9104, allocations: 0.7362 MB / 1.278 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.9107, allocations: 67.89 kB / 1.278 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.9107, allocations: 0 / 1.278 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.9108, allocations: 36.22 kB / 1.278 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.9111, allocations: 11.94 kB / 1.278 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.913, allocations: 1.434 MB / 1.28 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.9133, allocations: 0.6807 MB / 1.28 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.232e-05/0.9134, allocations: 7.984 kB / 1.28 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.9134, allocations: 19.44 kB / 1.28 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.9134, allocations: 0 / 1.28 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02672/0.9401, allocations: 1.802 MB / 1.282 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/9.012, allocations: 10.81 kB / 1.282 GB, free: 9.836 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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: 15.084131309995428]