Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001669/0.001669, allocations: 113.1 kB / 17.6 MB, free: 4.703 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.001734/0.001734, allocations: 186.7 kB / 20.78 MB, free: 1.547 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.578/1.578, allocations: 225.6 MB / 249.4 MB, free: 3.121 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.973/2.973, allocations: 496.2 MB / 0.7819 GB, free: 12.28 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 59.91 kB / 1.136 GB, free: 12.46 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15/1.152, allocations: 173.6 MB / 1.305 GB, free: 33.46 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001778/1.154, allocations: 0.6813 MB / 1.306 GB, free: 33.04 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001146/1.155, allocations: 1.077 MB / 1.307 GB, free: 32.25 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.271e-05/1.155, allocations: 0 / 1.307 GB, free: 32.25 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.226e-05/1.155, allocations: 3.938 kB / 1.307 GB, free: 32.24 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.225e-05/1.155, allocations: 3.938 kB / 1.307 GB, free: 32.24 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/1.156, allocations: 48.12 kB / 1.307 GB, free: 32.21 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/1.156, allocations: 54.16 kB / 1.307 GB, free: 32.18 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/1.156, allocations: 5.531 kB / 1.307 GB, free: 32.18 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.927e-05/1.156, allocations: 24.14 kB / 1.307 GB, free: 32.17 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.548e-05/1.156, allocations: 28 kB / 1.307 GB, free: 32.16 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/1.156, allocations: 5.844 kB / 1.307 GB, free: 32.16 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.55e-05/1.156, allocations: 15.41 kB / 1.307 GB, free: 32.15 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/1.156, allocations: 10.16 kB / 1.307 GB, free: 32.15 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/1.156, allocations: 24.84 kB / 1.307 GB, free: 32.13 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/1.156, allocations: 56.88 kB / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/1.156, allocations: 0 / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.894e-06/1.156, allocations: 0 / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.132e-06/1.156, allocations: 3.938 kB / 1.307 GB, free: 32.11 MB / 1.061 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.000592/1.157, allocations: 373.2 kB / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/1.157, allocations: 9 kB / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/1.157, allocations: 3.656 kB / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.686e-05/1.157, allocations: 179.2 kB / 1.308 GB, free: 31.53 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/1.157, allocations: 3.188 kB / 1.308 GB, free: 31.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/1.157, allocations: 7.328 kB / 1.308 GB, free: 31.52 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/1.157, allocations: 64.88 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/1.157, allocations: 192 / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/1.157, allocations: 7.938 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/1.157, allocations: 2.844 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/1.157, allocations: 41.59 kB / 1.308 GB, free: 31.47 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004022/1.158, allocations: 277 kB / 1.308 GB, free: 31.18 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/1.158, allocations: 63.78 kB / 1.308 GB, free: 31.14 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.886e-05/1.158, allocations: 26.98 kB / 1.308 GB, free: 31.13 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/1.158, allocations: 6.812 kB / 1.308 GB, free: 31.13 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/1.158, allocations: 66.91 kB / 1.308 GB, free: 31.08 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/1.158, allocations: 3.938 kB / 1.308 GB, free: 31.07 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004029/1.159, allocations: 135 kB / 1.309 GB, free: 31.01 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/1.159, allocations: 54.64 kB / 1.309 GB, free: 30.95 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.893e-05/1.159, allocations: 105.9 kB / 1.309 GB, free: 30.85 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/1.159, allocations: 25.7 kB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.467e-05/1.159, allocations: 86.7 kB / 1.309 GB, free: 30.73 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/1.159, allocations: 22.92 kB / 1.309 GB, free: 30.71 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/1.159, allocations: 22.64 kB / 1.309 GB, free: 30.69 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.369e-05/1.159, allocations: 324.9 kB / 1.309 GB, free: 30.37 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.291e-05/1.159, allocations: 28.7 kB / 1.309 GB, free: 30.36 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/1.159, allocations: 64.59 kB / 1.309 GB, free: 30.31 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/1.159, allocations: 91.88 kB / 1.309 GB, free: 30.25 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.159, allocations: 0 / 1.309 GB, free: 30.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002466/1.16, allocations: 116.5 kB / 1.31 GB, free: 30.19 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/1.16, allocations: 16.22 kB / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.16, allocations: 0 / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/1.16, allocations: 3.031 kB / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/1.16, allocations: 26.75 kB / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.16, allocations: 0 / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.246e-05/1.16, allocations: 10.09 kB / 1.31 GB, free: 30.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/1.16, allocations: 6.312 kB / 1.31 GB, free: 30.17 MB / 1.061 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 6.584e-05/1.16, allocations: 123.4 kB / 1.31 GB, free: 30.05 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/1.16, allocations: 6.969 kB / 1.31 GB, free: 30.04 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002586/1.16, allocations: 108.1 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/1.16, allocations: 0 / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/1.16, allocations: 0 / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/1.16, allocations: 0 / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/1.16, allocations: 362.8 kB / 1.31 GB, free: 29.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/1.16, allocations: 4 kB / 1.31 GB, free: 29.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/1.16, allocations: 15.34 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/1.16, allocations: 0 / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/1.161, allocations: 0 / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/1.161, allocations: 2.938 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.161, allocations: 48 / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/1.161, allocations: 199.4 kB / 1.31 GB, free: 29.5 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.373e-05/1.161, allocations: 92.94 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/1.161, allocations: 2.812 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/1.161, allocations: 8.672 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/1.161, allocations: 6.5 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/1.161, allocations: 3.938 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.728e-05/1.161, allocations: 85.22 kB / 1.311 GB, free: 29.31 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.161, allocations: 0 / 1.311 GB, free: 29.31 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002396/1.161, allocations: 15.47 kB / 1.311 GB, free: 29.3 MB / 1.061 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.0001352/1.161, allocations: 110.5 kB / 1.311 GB, free: 29.21 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002543/1.162, allocations: 69.97 kB / 1.311 GB, free: 29.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.162, allocations: 192 / 1.311 GB, free: 29.2 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/1.162, allocations: 27.36 kB / 1.311 GB, free: 29.19 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/1.162, allocations: 11.58 kB / 1.311 GB, free: 29.19 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003185/1.162, allocations: 166.6 kB / 1.311 GB, free: 29.05 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/1.162, allocations: 0.6885 MB / 1.312 GB, free: 28.35 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.111e-05/1.162, allocations: 6.531 kB / 1.312 GB, free: 28.35 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/1.162, allocations: 10.25 kB / 1.312 GB, free: 28.34 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/1.162, allocations: 0 / 1.312 GB, free: 28.34 MB / 1.061 GB Notification: Performance of Templates: time 0.003402/1.166, allocations: 0.8485 MB / 1.312 GB, free: 28.25 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.88341506011784]