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.001552/0.001552, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001754/0.001754, allocations: 217.8 kB / 23.01 MB, free: 4.609 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.779/2.779, allocations: 476.7 MB / 0.7714 GB, free: 4.289 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.002057/0.002057, allocations: 67.7 kB / 1.119 GB, free: 40.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3226, allocations: 169.9 MB / 1.285 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001932/0.3246, allocations: 0.6911 MB / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.326, allocations: 1.106 MB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.54e-05/0.326, allocations: 4 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.3261, allocations: 3.938 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.319e-05/0.3261, allocations: 3.938 kB / 1.286 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.3264, allocations: 47.83 kB / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.3265, allocations: 51.84 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.472e-05/0.3266, allocations: 12 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.139e-05/0.3267, allocations: 19.92 kB / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.627e-05/0.3268, allocations: 31.89 kB / 1.287 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.3268, allocations: 4 kB / 1.287 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.335e-05/0.3269, allocations: 27.92 kB / 1.287 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.3269, allocations: 4 kB / 1.287 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.3269, allocations: 27.86 kB / 1.287 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.3271, allocations: 63.72 kB / 1.287 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3271, allocations: 0 / 1.287 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3271, allocations: 0 / 1.287 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3271, allocations: 0 / 1.287 GB, free: 9.121 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.0006193/0.3277, allocations: 299.9 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3277, allocations: 12.03 kB / 1.287 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.02e-05/0.3278, allocations: 8.891 kB / 1.287 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.3279, allocations: 114.5 kB / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.328, allocations: 384 / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.328, allocations: 16.31 kB / 1.287 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.3282, allocations: 66.22 kB / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3282, allocations: 192 / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.3282, allocations: 3.938 kB / 1.287 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3282, allocations: 0 / 1.287 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3284, allocations: 51.89 kB / 1.287 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004712/0.3289, allocations: 247.9 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.329, allocations: 58.42 kB / 1.287 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.3292, allocations: 32.95 kB / 1.287 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3292, allocations: 4 kB / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.3294, allocations: 75.31 kB / 1.288 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3294, allocations: 0 / 1.288 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004247/0.3298, allocations: 125.6 kB / 1.288 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.3299, allocations: 59.41 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.33, allocations: 105.9 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.33, allocations: 29.69 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.33, allocations: 80.14 kB / 1.288 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.3301, allocations: 19.84 kB / 1.288 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.3301, allocations: 29.7 kB / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3303, allocations: 310.8 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3304, allocations: 35.91 kB / 1.288 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.3305, allocations: 56.27 kB / 1.288 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.3307, allocations: 100.1 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3307, allocations: 0 / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002808/0.331, allocations: 117.5 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.331, allocations: 14.33 kB / 1.289 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.331, allocations: 0 / 1.289 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3311, allocations: 4.125 kB / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3312, allocations: 15.98 kB / 1.289 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3312, allocations: 4 kB / 1.289 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.914e-05/0.3313, allocations: 4 kB / 1.289 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.3313, allocations: 11.98 kB / 1.289 GB, free: 6.836 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.0001289/0.3314, allocations: 121.7 kB / 1.289 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.3314, allocations: 7.953 kB / 1.289 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/0.3318, allocations: 110 kB / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3318, allocations: 0 / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3318, allocations: 192 / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3318, allocations: 0 / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005089/0.3323, allocations: 341.8 kB / 1.289 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3323, allocations: 0 / 1.289 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.3323, allocations: 11.98 kB / 1.289 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3323, allocations: 4.25 kB / 1.289 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3324, allocations: 3.938 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3324, allocations: 4 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3324, allocations: 0 / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.3327, allocations: 207.3 kB / 1.289 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.226e-05/0.3327, allocations: 7.953 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.3327, allocations: 7.984 kB / 1.289 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3328, allocations: 8 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.3329, allocations: 7.984 kB / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.3329, allocations: 7.938 kB / 1.289 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.494e-05/0.333, allocations: 87.27 kB / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.333, allocations: 0 / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003173/0.3333, allocations: 12 kB / 1.29 GB, free: 5.82 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.0002017/0.3335, allocations: 99.25 kB / 1.29 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3338, allocations: 71.88 kB / 1.29 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3338, allocations: 0 / 1.29 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.3339, allocations: 35.92 kB / 1.29 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.3342, allocations: 7.984 kB / 1.29 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/0.3346, allocations: 166.8 kB / 1.29 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.335, allocations: 0.6845 MB / 1.291 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.335, allocations: 15.44 kB / 1.291 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.335, allocations: 0 / 1.291 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of Templates: time 0.003146/0.3382, allocations: 0.9068 MB / 1.291 GB, free: 3.781 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.895053473999724]