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.002112/0.002112, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.003624/0.003624, allocations: 189.6 kB / 22.23 MB, free: 5.105 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.588/1.588, allocations: 225.6 MB / 251 MB, free: 13.02 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.859/2.859, allocations: 476.7 MB / 0.7646 GB, free: 9.895 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.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 63.89 kB / 1.11 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 168.8 MB / 1.274 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002967/1.055, allocations: 0.6757 MB / 1.275 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001731/1.057, allocations: 1.069 MB / 1.276 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.096e-05/1.057, allocations: 3.938 kB / 1.276 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.28e-05/1.057, allocations: 3.938 kB / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.918e-05/1.057, allocations: 7.875 kB / 1.276 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/1.058, allocations: 43.89 kB / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001435/1.058, allocations: 47.84 kB / 1.276 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/1.058, allocations: 12 kB / 1.276 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.272e-05/1.058, allocations: 27.91 kB / 1.276 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/1.058, allocations: 19.92 kB / 1.276 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/1.058, allocations: 4 kB / 1.276 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.824e-05/1.058, allocations: 15.98 kB / 1.276 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.696e-05/1.058, allocations: 15.92 kB / 1.276 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.162e-05/1.058, allocations: 19.92 kB / 1.276 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001662/1.058, allocations: 66.39 kB / 1.276 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.058, allocations: 0 / 1.276 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.502e-06/1.058, allocations: 0 / 1.276 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.6e-06/1.058, allocations: 0 / 1.276 GB, free: 2.168 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.0006756/1.059, allocations: 297.9 kB / 1.277 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/1.059, allocations: 8.031 kB / 1.277 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/1.059, allocations: 8.875 kB / 1.277 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/1.059, allocations: 122.4 kB / 1.277 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/1.059, allocations: 4.375 kB / 1.277 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/1.059, allocations: 8.375 kB / 1.277 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/1.059, allocations: 67.8 kB / 1.277 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.059, allocations: 192 / 1.277 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/1.059, allocations: 3.938 kB / 1.277 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/1.059, allocations: 4 kB / 1.277 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/1.06, allocations: 43.89 kB / 1.277 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/1.06, allocations: 240 kB / 1.277 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/1.06, allocations: 62.48 kB / 1.277 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/1.06, allocations: 28.95 kB / 1.277 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/1.06, allocations: 0 / 1.277 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/1.061, allocations: 91.25 kB / 1.277 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/1.061, allocations: 4 kB / 1.277 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004435/1.061, allocations: 121.7 kB / 1.277 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/1.061, allocations: 51.41 kB / 1.277 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.916e-05/1.061, allocations: 105.8 kB / 1.278 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/1.061, allocations: 29.7 kB / 1.278 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/1.061, allocations: 84.14 kB / 1.278 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/1.061, allocations: 27.78 kB / 1.278 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/1.061, allocations: 21.72 kB / 1.278 GB, free: 0.5938 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001624/1.062, allocations: 322.8 kB / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/1.062, allocations: 23.92 kB / 1.278 GB, free: 252 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/1.062, allocations: 60.27 kB / 1.278 GB, free: 176 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/1.062, allocations: 100.1 kB / 1.278 GB, free: 60 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/1.062, allocations: 0 / 1.278 GB, free: 60 kB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003158/1.062, allocations: 125.4 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.062, allocations: 4 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.062, allocations: 4 kB / 1.278 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/1.062, allocations: 0 / 1.278 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/1.063, allocations: 15.98 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/1.063, allocations: 4 kB / 1.278 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.948e-05/1.063, allocations: 7.984 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/1.063, allocations: 4 kB / 1.278 GB, free: 15.89 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.0001242/1.063, allocations: 132 kB / 1.278 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/1.063, allocations: 4.141 kB / 1.278 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002951/1.063, allocations: 110 kB / 1.279 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.063, allocations: 3.938 kB / 1.279 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.063, allocations: 3.984 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/1.063, allocations: 0 / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005004/1.064, allocations: 329.5 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/1.064, allocations: 256 / 1.279 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-05/1.064, allocations: 15.98 kB / 1.279 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/1.064, allocations: 4 kB / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/1.064, allocations: 0 / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.064, allocations: 0 / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.064, allocations: 0 / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/1.064, allocations: 211.8 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.849e-06/1.064, allocations: 3.938 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/1.064, allocations: 4 kB / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.945e-05/1.064, allocations: 11.98 kB / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/1.064, allocations: 4 kB / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/1.064, allocations: 7.922 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.39e-05/1.064, allocations: 83.28 kB / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/1.064, allocations: 4 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002535/1.065, allocations: 12 kB / 1.279 GB, free: 14.88 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.0001757/1.065, allocations: 107.2 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002839/1.065, allocations: 67.89 kB / 1.279 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.065, allocations: 3.938 kB / 1.279 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/1.065, allocations: 36.23 kB / 1.279 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/1.065, allocations: 8.156 kB / 1.279 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/1.066, allocations: 146.1 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/1.066, allocations: 0.6884 MB / 1.28 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.813e-05/1.066, allocations: 8.125 kB / 1.28 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/1.066, allocations: 7.438 kB / 1.28 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/1.066, allocations: 8 kB / 1.28 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of Templates: time 0.004089/1.07, allocations: 0.8586 MB / 1.281 GB, free: 12.9 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] 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/jenkins/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.908398580737412]