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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001152, allocations: 107.4 kB / 16.41 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 192.3 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.7428 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 63.91 kB / 1.065 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.01/1.011, allocations: 159.1 MB / 1.221 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00246/1.014, allocations: 0.6681 MB / 1.222 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001709/1.016, allocations: 1.069 MB / 1.223 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.883e-05/1.016, allocations: 0 / 1.223 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/1.016, allocations: 0 / 1.223 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001114/1.016, allocations: 11.88 kB / 1.223 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/1.016, allocations: 39.89 kB / 1.223 GB, free: 0.5859 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/1.017, allocations: 51.78 kB / 1.223 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/1.017, allocations: 15.98 kB / 1.223 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/1.017, allocations: 19.92 kB / 1.223 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.202e-05/1.017, allocations: 27.91 kB / 1.223 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/1.017, allocations: 4 kB / 1.223 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.414e-05/1.017, allocations: 19.98 kB / 1.223 GB, free: 460 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/1.017, allocations: 8 kB / 1.223 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.964e-05/1.017, allocations: 27.84 kB / 1.223 GB, free: 424 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002116/1.017, allocations: 55.8 kB / 1.223 GB, free: 368 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/1.017, allocations: 0 / 1.223 GB, free: 368 kB / 0.9356 GB Notification: Performance of FrontEnd: time 2.945e-06/1.017, allocations: 0 / 1.223 GB, free: 368 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.592e-06/1.017, allocations: 0 / 1.223 GB, free: 368 kB / 0.9356 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.0008472/1.018, allocations: 371.2 kB / 1.223 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/1.018, allocations: 8.031 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.729e-05/1.018, allocations: 12.78 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/1.019, allocations: 170.2 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/1.019, allocations: 4.375 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/1.019, allocations: 4.375 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/1.019, allocations: 62.22 kB / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/1.019, allocations: 4.188 kB / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/1.019, allocations: 15.88 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/1.019, allocations: 0 / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/1.019, allocations: 43.95 kB / 1.224 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/1.02, allocations: 272.8 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/1.02, allocations: 62.48 kB / 1.224 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/1.02, allocations: 36.95 kB / 1.224 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/1.02, allocations: 3.938 kB / 1.224 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/1.021, allocations: 79.44 kB / 1.224 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/1.021, allocations: 0 / 1.224 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0005038/1.021, allocations: 121.6 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/1.021, allocations: 51.41 kB / 1.224 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/1.021, allocations: 101.9 kB / 1.224 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/1.021, allocations: 29.69 kB / 1.224 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.835e-05/1.022, allocations: 95.98 kB / 1.224 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/1.022, allocations: 15.81 kB / 1.224 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/1.022, allocations: 25.64 kB / 1.224 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001683/1.022, allocations: 322.8 kB / 1.225 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/1.022, allocations: 23.97 kB / 1.225 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/1.022, allocations: 60.27 kB / 1.225 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/1.022, allocations: 96.19 kB / 1.225 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/1.022, allocations: 3.938 kB / 1.225 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002814/1.023, allocations: 113.4 kB / 1.225 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.023, allocations: 12.11 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.023, allocations: 0 / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.023, allocations: 4 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/1.023, allocations: 15.98 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/1.023, allocations: 0 / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.058e-05/1.023, allocations: 8 kB / 1.225 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/1.023, allocations: 7.984 kB / 1.225 GB, free: 13.89 MB / 0.9512 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.0001149/1.023, allocations: 126.2 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/1.023, allocations: 4.188 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003117/1.023, allocations: 117.9 kB / 1.225 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.023, allocations: 7.922 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.023, allocations: 0 / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.905e-05/1.023, allocations: 77.11 kB / 1.225 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/1.023, allocations: 7.984 kB / 1.225 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/1.024, allocations: 8 kB / 1.225 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/1.024, allocations: 11.86 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003203/1.024, allocations: 180.9 kB / 1.226 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003171/1.024, allocations: 275.1 kB / 1.226 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000112/1.024, allocations: 36.03 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.462e-05/1.024, allocations: 99.45 kB / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of Backend: time 9.72e-07/1.024, allocations: 0 / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005179/1.025, allocations: 120.2 kB / 1.226 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0005705/1.026, allocations: 0.5926 MB / 1.227 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of Templates: time 0.004164/1.03, allocations: 0.9304 MB / 1.228 GB, free: 11.22 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) 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) Reference file matches