Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_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_latest_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.001355/0.001355, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001315/0.001315, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.511/1.511, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 63.91 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.067/1.069, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002053/1.071, allocations: 0.6792 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001639/1.073, allocations: 1.069 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.968e-05/1.073, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.419e-05/1.073, allocations: 7.938 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.312e-05/1.073, allocations: 7.922 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/1.074, allocations: 43.84 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/1.074, allocations: 79.75 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/1.074, allocations: 12 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/1.074, allocations: 23.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.926e-05/1.074, allocations: 35.88 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/1.074, allocations: 8 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.139e-05/1.074, allocations: 16 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.285e-05/1.075, allocations: 19.92 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/1.075, allocations: 27.86 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001942/1.075, allocations: 71.81 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/1.075, allocations: 3.938 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.334e-06/1.075, allocations: 0 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.688e-06/1.075, allocations: 0 / 1.21 GB, free: 11.54 MB / 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.0007994/1.076, allocations: 383.2 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/1.076, allocations: 8.031 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.294e-05/1.076, allocations: 12.78 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/1.076, allocations: 178.2 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/1.076, allocations: 384 / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/1.076, allocations: 12.38 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/1.076, allocations: 78.2 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/1.076, allocations: 192 / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/1.076, allocations: 7.875 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/1.076, allocations: 0 / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/1.077, allocations: 59.89 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/1.077, allocations: 312.7 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/1.078, allocations: 82.47 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/1.078, allocations: 40.84 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/1.078, allocations: 8.078 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/1.078, allocations: 99.44 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 2.475e-06/1.078, allocations: 0 / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0005179/1.078, allocations: 169.5 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/1.079, allocations: 55.41 kB / 1.212 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/1.079, allocations: 113.8 kB / 1.212 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/1.079, allocations: 29.7 kB / 1.212 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/1.079, allocations: 88.36 kB / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/1.079, allocations: 27.64 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.408e-05/1.079, allocations: 33.7 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001282/1.079, allocations: 318.8 kB / 1.212 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/1.079, allocations: 35.97 kB / 1.213 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/1.079, allocations: 66.55 kB / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/1.08, allocations: 102.4 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.08, allocations: 3.938 kB / 1.213 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003401/1.08, allocations: 149.4 kB / 1.213 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/1.08, allocations: 5.562 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/1.08, allocations: 4 kB / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.08, allocations: 0 / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/1.08, allocations: 23.92 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/1.08, allocations: 384 / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.563e-05/1.08, allocations: 11.89 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/1.08, allocations: 8 kB / 1.213 GB, free: 8.824 MB / 0.9356 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.0001002/1.08, allocations: 125.8 kB / 1.213 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/1.08, allocations: 3.938 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003555/1.081, allocations: 149.9 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/1.081, allocations: 0 / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/1.081, allocations: 0 / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/1.081, allocations: 89 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/1.081, allocations: 0 / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/1.081, allocations: 15.98 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/1.081, allocations: 8.188 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003949/1.081, allocations: 220.8 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004124/1.082, allocations: 310.6 kB / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001328/1.082, allocations: 51.95 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.344e-05/1.082, allocations: 83.28 kB / 1.214 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of Backend: time 7.01e-07/1.082, allocations: 3.938 kB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005413/1.083, allocations: 138.4 kB / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006738/1.083, allocations: 0.6026 MB / 1.215 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of Templates: time 0.004056/1.087, allocations: 1.146 MB / 1.216 GB, free: 5.801 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches