Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01006/0.01006, allocations: 98.33 kB / 15.73 MB, free: 6.051 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.001914/0.001914, allocations: 188.9 kB / 16.67 MB, free: 5.961 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.651/2.651, allocations: 469.8 MB / 0.7425 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 59.91 kB / 1.065 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9635/0.9647, allocations: 159.1 MB / 1.221 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002159/0.9669, allocations: 0.6933 MB / 1.221 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.9683, allocations: 1.069 MB / 1.222 GB, free: 368 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.95e-05/0.9684, allocations: 0 / 1.222 GB, free: 368 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.103e-05/0.9684, allocations: 3.938 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.894e-05/0.9685, allocations: 15.86 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.9688, allocations: 47.83 kB / 1.222 GB, free: 300 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.9689, allocations: 63.89 kB / 1.222 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.981e-05/0.969, allocations: 8 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.892e-05/0.9691, allocations: 35.86 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.243e-05/0.9691, allocations: 35.88 kB / 1.223 GB, free: 156 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.9691, allocations: 7.938 kB / 1.223 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.47e-05/0.9692, allocations: 23.98 kB / 1.223 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.03e-05/0.9692, allocations: 8 kB / 1.223 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.9693, allocations: 27.86 kB / 1.223 GB, free: 88 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.9694, allocations: 75.27 kB / 1.223 GB, free: 16 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.9694, allocations: 0 / 1.223 GB, free: 16 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9694, allocations: 0 / 1.223 GB, free: 16 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.9694, allocations: 0 / 1.223 GB, free: 16 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006583/0.9701, allocations: 392.2 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.9701, allocations: 12.62 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.9702, allocations: 4.891 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.9703, allocations: 172.3 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.9703, allocations: 4.375 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.9703, allocations: 8.375 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.9706, allocations: 82.2 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.9706, allocations: 192 / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.9706, allocations: 7.938 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.9706, allocations: 0 / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.9708, allocations: 51.95 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005519/0.9714, allocations: 316.6 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.9716, allocations: 86.39 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.9717, allocations: 40.84 kB / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.9717, allocations: 3.984 kB / 1.224 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.9719, allocations: 87.5 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.9719, allocations: 4 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0004911/0.9724, allocations: 173.5 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.9725, allocations: 55.41 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.685e-05/0.9726, allocations: 105.8 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.9726, allocations: 29.7 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.9726, allocations: 92.36 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.9727, allocations: 31.73 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.9727, allocations: 33.7 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.9728, allocations: 322.8 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.9729, allocations: 35.97 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.9731, allocations: 58.55 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.9733, allocations: 114.3 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.9733, allocations: 0 / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003028/0.9736, allocations: 141.6 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.9736, allocations: 4 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.9736, allocations: 0 / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.9736, allocations: 8.062 kB / 1.225 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.9738, allocations: 16.23 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.9738, allocations: 7.938 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.031e-05/0.9738, allocations: 15.94 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.9739, allocations: 8 kB / 1.225 GB, free: 13.29 MB / 0.9512 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 9.275e-05/0.974, allocations: 126.2 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.974, allocations: 8.328 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.9743, allocations: 153.9 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.9743, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.9743, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.9743, allocations: 3.984 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005127/0.9748, allocations: 406.4 kB / 1.226 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.9748, allocations: 0 / 1.226 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.9749, allocations: 11.98 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.9749, allocations: 4 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.9749, allocations: 0 / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.9749, allocations: 0 / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.9749, allocations: 3.938 kB / 1.226 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003279/0.9752, allocations: 239.4 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/0.9753, allocations: 81.06 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.9753, allocations: 8 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.9754, allocations: 7.984 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.9755, allocations: 15.92 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.9755, allocations: 3.938 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.847e-05/0.9755, allocations: 87.22 kB / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of sort global known variables: time 7e-08/0.9755, allocations: 0 / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002495/0.9758, allocations: 16 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001826/0.9759, allocations: 115.2 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002981/0.9762, allocations: 95.88 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9762, allocations: 288 / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.9764, allocations: 47.84 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.9766, allocations: 9.719 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004238/0.9771, allocations: 178.6 kB / 1.227 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.9773, allocations: 0.6851 MB / 1.227 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.955e-05/0.9774, allocations: 12.41 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.094e-05/0.9774, allocations: 15.44 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.9774, allocations: 0 / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of Templates: time 0.003559/0.9809, allocations: 1.042 MB / 1.228 GB, free: 9.789 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches