Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001215/0.001215, allocations: 113.9 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.001412/0.001412, allocations: 191.7 kB / 22.23 MB, free: 5.102 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.547/1.547, 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 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.46/3.46, allocations: 496 MB / 0.7835 GB, free: 33.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 62.58 kB / 1.138 GB, free: 33.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4645, allocations: 173.6 MB / 1.307 GB, free: 1.891 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002063/0.4666, allocations: 0.7001 MB / 1.308 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.468, allocations: 1.073 MB / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.666e-05/0.4681, allocations: 0 / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.999e-05/0.4681, allocations: 7.938 kB / 1.309 GB, free: 100 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.612e-05/0.4682, allocations: 3.938 kB / 1.309 GB, free: 96 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.4685, allocations: 43.83 kB / 1.309 GB, free: 52 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.4686, allocations: 51.84 kB / 1.309 GB, free: 0 / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.4687, allocations: 8.078 kB / 1.309 GB, free: 15.99 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.616e-05/0.4688, allocations: 19.92 kB / 1.309 GB, free: 15.97 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.433e-05/0.4689, allocations: 35.75 kB / 1.309 GB, free: 15.94 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.4689, allocations: 4 kB / 1.309 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.285e-05/0.4689, allocations: 15.98 kB / 1.309 GB, free: 15.92 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/0.469, allocations: 8 kB / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.941e-05/0.469, allocations: 27.86 kB / 1.309 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.4691, allocations: 55.78 kB / 1.309 GB, free: 15.83 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4691, allocations: 0 / 1.309 GB, free: 15.83 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4691, allocations: 3.938 kB / 1.309 GB, free: 15.82 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.4691, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 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.0005999/0.4697, allocations: 298.2 kB / 1.31 GB, free: 15.5 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.4698, allocations: 8.922 kB / 1.31 GB, free: 15.49 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.161e-05/0.4698, allocations: 8.891 kB / 1.31 GB, free: 15.48 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.709e-05/0.4699, allocations: 110.5 kB / 1.31 GB, free: 15.35 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.4699, allocations: 8.312 kB / 1.31 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.4699, allocations: 4.375 kB / 1.31 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.4701, allocations: 62.22 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.4702, allocations: 4.125 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.4702, allocations: 3.938 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.4702, allocations: 4 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.4704, allocations: 47.95 kB / 1.31 GB, free: 15.21 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.4709, allocations: 247.9 kB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.471, allocations: 62.42 kB / 1.31 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.807e-05/0.4711, allocations: 28.95 kB / 1.31 GB, free: 14.83 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.4712, allocations: 4 kB / 1.31 GB, free: 14.82 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.4714, allocations: 79.33 kB / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.4714, allocations: 0 / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004078/0.4718, allocations: 129.6 kB / 1.31 GB, free: 14.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.4718, allocations: 51.41 kB / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.05e-05/0.4719, allocations: 109.8 kB / 1.31 GB, free: 14.42 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.4719, allocations: 25.7 kB / 1.311 GB, free: 14.39 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.472, allocations: 92.09 kB / 1.311 GB, free: 14.3 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.472, allocations: 19.89 kB / 1.311 GB, free: 14.28 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.4721, allocations: 17.72 kB / 1.311 GB, free: 14.25 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.4722, allocations: 322.8 kB / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.4723, allocations: 19.98 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.4724, allocations: 64.27 kB / 1.311 GB, free: 13.83 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.4726, allocations: 96.12 kB / 1.311 GB, free: 13.72 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4727, allocations: 3.938 kB / 1.311 GB, free: 13.72 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002794/0.4729, allocations: 113.5 kB / 1.311 GB, free: 13.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4729, allocations: 4 kB / 1.311 GB, free: 13.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.473, allocations: 4 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.473, allocations: 0 / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.4731, allocations: 28.05 kB / 1.311 GB, free: 13.57 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.4731, allocations: 4.188 kB / 1.311 GB, free: 13.56 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.098e-05/0.4732, allocations: 11.92 kB / 1.311 GB, free: 13.55 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.4732, allocations: 7.938 kB / 1.311 GB, free: 13.54 MB / 1.014 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 9.944e-05/0.4733, allocations: 123.3 kB / 1.311 GB, free: 13.41 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.4733, allocations: 8.188 kB / 1.311 GB, free: 13.41 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.4736, allocations: 110.3 kB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4736, allocations: 4 kB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4736, allocations: 4 kB / 1.312 GB, free: 13.28 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.4736, allocations: 0 / 1.312 GB, free: 13.28 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.4741, allocations: 333.6 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4741, allocations: 0 / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.908e-05/0.4741, allocations: 19.92 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.4741, allocations: 4 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.4742, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4742, allocations: 4 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4742, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003188/0.4745, allocations: 199.4 kB / 1.312 GB, free: 12.67 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.645e-06/0.4745, allocations: 0 / 1.312 GB, free: 12.67 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.4745, allocations: 4 kB / 1.312 GB, free: 12.66 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.648e-05/0.4746, allocations: 11.98 kB / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.4746, allocations: 7.984 kB / 1.312 GB, free: 12.64 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.4747, allocations: 3.938 kB / 1.312 GB, free: 12.64 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.05e-05/0.4747, allocations: 83.28 kB / 1.312 GB, free: 12.56 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4747, allocations: 0 / 1.312 GB, free: 12.56 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002463/0.4749, allocations: 19.94 kB / 1.312 GB, free: 12.54 MB / 1.014 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.000193/0.4751, allocations: 112 kB / 1.312 GB, free: 12.42 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.4754, allocations: 75.94 kB / 1.312 GB, free: 12.35 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4754, allocations: 0 / 1.312 GB, free: 12.35 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.4755, allocations: 27.97 kB / 1.312 GB, free: 12.32 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.4758, allocations: 4.094 kB / 1.312 GB, free: 12.32 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.4762, allocations: 141.9 kB / 1.313 GB, free: 12.15 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.4766, allocations: 0.6965 MB / 1.313 GB, free: 11.43 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.937e-05/0.4767, allocations: 11.92 kB / 1.313 GB, free: 11.42 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.663e-05/0.4767, allocations: 7.438 kB / 1.313 GB, free: 11.41 MB / 1.014 GB Notification: Performance of SimCode: time 3.1e-07/0.4767, allocations: 4 kB / 1.313 GB, free: 11.41 MB / 1.014 GB Notification: Performance of Templates: time 0.003796/0.4805, allocations: 0.8699 MB / 1.314 GB, free: 10.54 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.853259863331914]