Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001598/0.001598, allocations: 95.92 kB / 19.7 MB, free: 2.129 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.001476/0.001476, allocations: 212.4 kB / 23 MB, free: 4.934 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.618/1.618, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.295/3.295, allocations: 0.49 GB / 0.7959 GB, free: 35.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.002103/0.002103, allocations: 70.73 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3959, allocations: 176.1 MB / 1.327 GB, free: 1 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002027/0.3979, allocations: 0.6718 MB / 1.328 GB, free: 344 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3995, allocations: 1.105 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.49e-05/0.3996, allocations: 0 / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.993e-05/0.3996, allocations: 3.938 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.069e-05/0.3997, allocations: 7.922 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.4, allocations: 59.77 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.4001, allocations: 67.83 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.71e-05/0.4002, allocations: 8 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.557e-05/0.4003, allocations: 35.91 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.442e-05/0.4003, allocations: 31.91 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.4003, allocations: 8 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.45e-05/0.4004, allocations: 27.86 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.931e-05/0.4004, allocations: 19.97 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.894e-05/0.4005, allocations: 19.92 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.4006, allocations: 79.69 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4007, allocations: 4 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4007, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.4007, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006492/0.4013, allocations: 310.1 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.4014, allocations: 8.031 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.127e-05/0.4014, allocations: 8.938 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.4016, allocations: 114.4 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.4016, allocations: 8.375 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.4016, allocations: 8.312 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.4019, allocations: 82.16 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.4019, allocations: 4.188 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.4019, allocations: 15.92 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.4019, allocations: 0 / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.4021, allocations: 47.95 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004901/0.4026, allocations: 244.4 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.4028, allocations: 74.53 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.4029, allocations: 44.77 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.4029, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.4032, allocations: 95.44 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.4032, allocations: 0 / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005051/0.4037, allocations: 165.6 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.4038, allocations: 63.39 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.12e-05/0.4038, allocations: 110.2 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.4039, allocations: 37.7 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.4039, allocations: 80.38 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.404, allocations: 31.78 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.404, allocations: 33.66 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4042, allocations: 318.9 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.4043, allocations: 43.91 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.4044, allocations: 58.55 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/0.4047, allocations: 102.5 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4047, allocations: 0 / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003263/0.405, allocations: 141.5 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.405, allocations: 8 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.405, allocations: 0 / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.405, allocations: 0 / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.4052, allocations: 23.92 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.4052, allocations: 8.047 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.598e-05/0.4053, allocations: 15.95 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.4053, allocations: 7.938 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.000113/0.4054, allocations: 130.3 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.4054, allocations: 7.938 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003666/0.4058, allocations: 145.9 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.4058, allocations: 3.984 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4058, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.293e-05/0.4058, allocations: 7.953 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.4058, allocations: 4 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.4059, allocations: 7.984 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.055e-05/0.406, allocations: 11.98 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003965/0.4064, allocations: 224.8 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003983/0.4068, allocations: 318.8 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001292/0.4069, allocations: 43.97 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.662e-05/0.4069, allocations: 91.52 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of Backend: time 4.01e-07/0.4069, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005126/0.4075, allocations: 139.5 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of SimCode: time 0.0005647/0.408, allocations: 0.5889 MB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of Templates: time 0.004263/0.4123, allocations: 1.34 MB / 1.334 GB, free: 9.266 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.37734043799719]