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.001414/0.001414, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001676/0.001676, allocations: 218.8 kB / 22.99 MB, free: 4.914 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.755/2.755, allocations: 476 MB / 0.7707 GB, free: 4.793 MB / 0.6231 GB " [Timeout remaining time 177] 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: 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: 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.002062/0.002062, allocations: 68.25 kB / 1.118 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3257, allocations: 170 MB / 1.284 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002183/0.3279, allocations: 0.6666 MB / 1.284 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001663/0.3296, allocations: 1.083 MB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.538e-05/0.3296, allocations: 3.938 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.448e-05/0.3296, allocations: 3.938 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.304e-05/0.3297, allocations: 11.92 kB / 1.286 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.3301, allocations: 51.83 kB / 1.286 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.3302, allocations: 47.86 kB / 1.286 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.789e-05/0.3303, allocations: 7.984 kB / 1.286 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.3304, allocations: 27.92 kB / 1.286 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.872e-05/0.3304, allocations: 19.91 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.3305, allocations: 4 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.396e-05/0.3305, allocations: 19.98 kB / 1.286 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.847e-05/0.3306, allocations: 19.86 kB / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.3306, allocations: 11.94 kB / 1.286 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.3308, allocations: 63.78 kB / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3308, allocations: 3.984 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3308, allocations: 0 / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3308, allocations: 0 / 1.286 GB, free: 10.02 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.0006413/0.3314, allocations: 298.2 kB / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3315, allocations: 8.031 kB / 1.286 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.812e-05/0.3316, allocations: 8.891 kB / 1.286 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3317, allocations: 122.4 kB / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.3317, allocations: 384 / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.3317, allocations: 8.312 kB / 1.286 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.3319, allocations: 62.22 kB / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3319, allocations: 8.172 kB / 1.286 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.332, allocations: 7.938 kB / 1.286 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.332, allocations: 0 / 1.286 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.3321, allocations: 39.97 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.3326, allocations: 216.5 kB / 1.287 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.3328, allocations: 54.55 kB / 1.287 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.3329, allocations: 36.89 kB / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.3329, allocations: 4 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.3331, allocations: 75.38 kB / 1.287 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/0.3331, allocations: 0 / 1.287 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004871/0.3336, allocations: 125.9 kB / 1.287 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.3337, allocations: 55.41 kB / 1.287 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.983e-05/0.3338, allocations: 105.8 kB / 1.287 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.3338, allocations: 33.7 kB / 1.287 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/0.3339, allocations: 80.14 kB / 1.287 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.3339, allocations: 27.83 kB / 1.287 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.334, allocations: 21.72 kB / 1.287 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3341, allocations: 318.8 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.3342, allocations: 23.98 kB / 1.287 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3343, allocations: 64.2 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/0.3346, allocations: 92.19 kB / 1.288 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3346, allocations: 4 kB / 1.288 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002938/0.3349, allocations: 117.5 kB / 1.288 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3349, allocations: 4.188 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3349, allocations: 4.016 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.3349, allocations: 8.062 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.335, allocations: 19.98 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.335, allocations: 3.984 kB / 1.288 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.074e-05/0.3351, allocations: 11.98 kB / 1.288 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.3351, allocations: 4 kB / 1.288 GB, free: 7.785 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.0001022/0.3352, allocations: 121.8 kB / 1.288 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.3352, allocations: 7.891 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.3355, allocations: 110 kB / 1.288 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3355, allocations: 4.25 kB / 1.288 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3355, allocations: 7.922 kB / 1.288 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3355, allocations: 4 kB / 1.288 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004433/0.336, allocations: 298.1 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.336, allocations: 0 / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.386e-05/0.3361, allocations: 11.98 kB / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3361, allocations: 0 / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3361, allocations: 4 kB / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3361, allocations: 0 / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3361, allocations: 4 kB / 1.288 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.3364, allocations: 203.4 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.182e-05/0.3364, allocations: 7.938 kB / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.3364, allocations: 7.938 kB / 1.289 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3365, allocations: 7.984 kB / 1.289 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.3366, allocations: 7.984 kB / 1.289 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.3366, allocations: 0 / 1.289 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.413e-05/0.3366, allocations: 91.27 kB / 1.289 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3366, allocations: 4 kB / 1.289 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002472/0.3369, allocations: 15.95 kB / 1.289 GB, free: 6.812 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.0001479/0.337, allocations: 99.25 kB / 1.289 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.3373, allocations: 71.81 kB / 1.289 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3373, allocations: 0 / 1.289 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.3374, allocations: 31.98 kB / 1.289 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3377, allocations: 12.23 kB / 1.289 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003744/0.3381, allocations: 167.8 kB / 1.289 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.602e-05/0.3381, allocations: 71.33 kB / 1.289 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.3382, allocations: 11.44 kB / 1.289 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.3382, allocations: 0 / 1.289 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of Templates: time 0.002606/0.3408, allocations: 0.9361 MB / 1.29 GB, free: 5.371 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/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.942970552947372]