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.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.001585/0.001585, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.001801/0.001801, allocations: 162 kB / 23.01 MB, free: 4.602 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.459/1.459, allocations: 177.2 MB / 203.4 MB, free: 8.875 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.928/2.928, allocations: 394.2 MB / 0.6386 GB, free: 11.92 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.003488/0.003488, allocations: 63.89 kB / 1.009 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9583/0.9618, allocations: 181.8 MB / 1.187 GB, free: 16.19 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.003004/0.9648, allocations: 0.67 MB / 1.187 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00208/0.9669, allocations: 1.09 MB / 1.188 GB, free: 14.99 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.803e-05/0.967, allocations: 0 / 1.188 GB, free: 14.99 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.325e-05/0.967, allocations: 3.938 kB / 1.188 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.971e-05/0.9671, allocations: 6.531 kB / 1.188 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.9675, allocations: 48.77 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.000164/0.9677, allocations: 51.53 kB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.9678, allocations: 8.5 kB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 8.613e-05/0.9679, allocations: 31.69 kB / 1.188 GB, free: 14.91 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.968, allocations: 20.38 kB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.968, allocations: 4.312 kB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.9681, allocations: 19.88 kB / 1.188 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.258e-05/0.9681, allocations: 13 kB / 1.189 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.393e-05/0.9682, allocations: 19.42 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.9685, allocations: 69.73 kB / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.9685, allocations: 0 / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.284e-06/0.9685, allocations: 1.219 kB / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.9685, allocations: 0 / 1.189 GB, free: 14.85 MB / 1.076 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.0008056/0.9693, allocations: 298.8 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.9693, allocations: 9.281 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.9695, allocations: 8.75 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.9696, allocations: 111.9 kB / 1.189 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.9696, allocations: 5.5 kB / 1.189 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.9696, allocations: 4.156 kB / 1.189 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.9699, allocations: 64.36 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.9699, allocations: 192 / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.97, allocations: 8.938 kB / 1.189 GB, free: 14.38 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.97, allocations: 5.047 kB / 1.189 GB, free: 14.38 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.9703, allocations: 47.09 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.9709, allocations: 209.8 kB / 1.189 GB, free: 14.16 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.9712, allocations: 52.08 kB / 1.189 GB, free: 14.13 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.9714, allocations: 31.97 kB / 1.189 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.9714, allocations: 11.11 kB / 1.189 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.9718, allocations: 81.14 kB / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 2.575e-06/0.9718, allocations: 0 / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0007382/0.9725, allocations: 122.5 kB / 1.19 GB, free: 13.99 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.9726, allocations: 53.39 kB / 1.19 GB, free: 13.93 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.9727, allocations: 104.1 kB / 1.19 GB, free: 13.83 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.9727, allocations: 26.8 kB / 1.19 GB, free: 13.8 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.9727, allocations: 99.75 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.9728, allocations: 16 kB / 1.19 GB, free: 13.69 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/0.9728, allocations: 22.38 kB / 1.19 GB, free: 13.67 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.067e-05/0.9729, allocations: 319.3 kB / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.9731, allocations: 24.8 kB / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.9733, allocations: 68.27 kB / 1.19 GB, free: 13.29 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.9737, allocations: 90.48 kB / 1.19 GB, free: 13.23 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.9737, allocations: 4 kB / 1.19 GB, free: 13.23 MB / 1.076 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005134/0.9742, allocations: 126 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.9742, allocations: 5.5 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.9742, allocations: 1.406 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.9743, allocations: 6.844 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.9745, allocations: 20.75 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.9745, allocations: 2.156 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.9746, allocations: 6.734 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.9746, allocations: 4.406 kB / 1.191 GB, free: 13.16 MB / 1.076 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.0001001/0.9747, allocations: 127.1 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.9748, allocations: 6.781 kB / 1.191 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005084/0.9753, allocations: 112.2 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.9753, allocations: 5.25 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.9753, allocations: 0 / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.9753, allocations: 1.688 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006257/0.9759, allocations: 304.4 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.9759, allocations: 0 / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.976, allocations: 11.48 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.976, allocations: 1.281 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.976, allocations: 0.6562 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.976, allocations: 5.344 kB / 1.191 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.976, allocations: 0.75 kB / 1.191 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.9765, allocations: 203.4 kB / 1.191 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.335e-05/0.9765, allocations: 2.406 kB / 1.191 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.9765, allocations: 1.469 kB / 1.191 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.9767, allocations: 12.66 kB / 1.191 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/0.9768, allocations: 9.75 kB / 1.191 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.9768, allocations: 3.297 kB / 1.191 GB, free: 12.53 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.883e-05/0.9769, allocations: 89.19 kB / 1.191 GB, free: 12.45 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9769, allocations: 0 / 1.191 GB, free: 12.45 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000476/0.9773, allocations: 12.31 kB / 1.191 GB, free: 12.45 MB / 1.076 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.0001759/0.9775, allocations: 103.2 kB / 1.192 GB, free: 12.36 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.978, allocations: 68.5 kB / 1.192 GB, free: 12.34 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.978, allocations: 3.938 kB / 1.192 GB, free: 12.34 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.9782, allocations: 33.64 kB / 1.192 GB, free: 12.33 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.9786, allocations: 14.28 kB / 1.192 GB, free: 12.32 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004823/0.9791, allocations: 140.9 kB / 1.192 GB, free: 12.2 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.565e-05/0.9792, allocations: 67.94 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.106e-05/0.9792, allocations: 12.03 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.9793, allocations: 12.72 kB / 1.192 GB, free: 12.11 MB / 1.076 GB Notification: Performance of SimCode: time 6.82e-07/0.9793, allocations: 1.562 kB / 1.192 GB, free: 12.11 MB / 1.076 GB Notification: Performance of Templates: time 0.00649/0.9858, allocations: 0.867 MB / 1.193 GB, free: 11.99 MB / 1.076 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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] 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/jenkins1/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.356043406995013]