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.001607/0.001607, allocations: 116.2 kB / 16.81 MB, free: 5.754 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.001952/0.001952, allocations: 199.1 kB / 17.77 MB, free: 5.125 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.594/1.594, allocations: 225.6 MB / 244.2 MB, free: 13.9 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 3.022/3.022, allocations: 476.7 MB / 0.7556 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 68.92 kB / 1.097 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4283/0.4302, allocations: 168.7 MB / 1.262 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002085/0.4323, allocations: 0.6843 MB / 1.263 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.4338, allocations: 1.073 MB / 1.264 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.603e-05/0.4339, allocations: 3.938 kB / 1.264 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.4339, allocations: 3.938 kB / 1.264 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.496e-05/0.434, allocations: 11.92 kB / 1.264 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.4343, allocations: 51.81 kB / 1.264 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.4345, allocations: 63.84 kB / 1.264 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.4346, allocations: 8 kB / 1.264 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.481e-05/0.4347, allocations: 35.84 kB / 1.264 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.046e-05/0.4347, allocations: 35.89 kB / 1.264 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.4348, allocations: 8 kB / 1.264 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.4348, allocations: 19.98 kB / 1.264 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.804e-05/0.4349, allocations: 15.92 kB / 1.264 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.4349, allocations: 27.86 kB / 1.264 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.4351, allocations: 75.73 kB / 1.264 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4351, allocations: 0 / 1.264 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4351, allocations: 0 / 1.264 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.4351, allocations: 0 / 1.264 GB, free: 10.9 MB / 0.9825 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.0007394/0.4358, allocations: 383.2 kB / 1.264 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.4359, allocations: 12.62 kB / 1.264 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.4359, allocations: 12.89 kB / 1.264 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.4361, allocations: 168.3 kB / 1.265 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.4361, allocations: 4.375 kB / 1.265 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.4362, allocations: 16.3 kB / 1.265 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.4364, allocations: 74.22 kB / 1.265 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.4364, allocations: 192 / 1.265 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.4364, allocations: 11.94 kB / 1.265 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.4364, allocations: 3.984 kB / 1.265 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.4366, allocations: 55.94 kB / 1.265 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.4372, allocations: 304.8 kB / 1.265 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.4374, allocations: 78.47 kB / 1.265 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.4376, allocations: 40.83 kB / 1.265 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.4376, allocations: 0 / 1.265 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.4378, allocations: 91.5 kB / 1.265 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.4378, allocations: 0 / 1.265 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.000562/0.4384, allocations: 181.4 kB / 1.265 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.4385, allocations: 59.39 kB / 1.266 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.4386, allocations: 101.9 kB / 1.266 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.4386, allocations: 33.69 kB / 1.266 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.4387, allocations: 88.38 kB / 1.266 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.4387, allocations: 31.73 kB / 1.266 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.4388, allocations: 29.7 kB / 1.266 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.4389, allocations: 326.8 kB / 1.266 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.439, allocations: 36.08 kB / 1.266 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.4392, allocations: 62.48 kB / 1.266 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.4394, allocations: 106.5 kB / 1.266 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4394, allocations: 3.938 kB / 1.266 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003286/0.4398, allocations: 137.5 kB / 1.266 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4398, allocations: 5.875 kB / 1.266 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.4398, allocations: 0 / 1.266 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.4398, allocations: 4 kB / 1.266 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4399, allocations: 24.05 kB / 1.266 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.4399, allocations: 7.938 kB / 1.266 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.952e-05/0.44, allocations: 20.12 kB / 1.267 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.44, allocations: 4 kB / 1.267 GB, free: 8.188 MB / 0.9825 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.0001191/0.4402, allocations: 127 kB / 1.267 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.4402, allocations: 15.94 kB / 1.267 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003679/0.4405, allocations: 146 kB / 1.267 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.4406, allocations: 3.984 kB / 1.267 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4406, allocations: 0 / 1.267 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.637e-05/0.4406, allocations: 81.06 kB / 1.267 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.4406, allocations: 4 kB / 1.267 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.69e-05/0.4407, allocations: 7.984 kB / 1.267 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.4408, allocations: 15.92 kB / 1.267 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003874/0.4411, allocations: 221.2 kB / 1.267 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003917/0.4415, allocations: 307.8 kB / 1.267 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001259/0.4417, allocations: 39.97 kB / 1.267 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.364e-05/0.4417, allocations: 83.28 kB / 1.268 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of Backend: time 6.72e-07/0.4417, allocations: 0 / 1.268 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005717/0.4423, allocations: 146.2 kB / 1.268 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0006528/0.443, allocations: 0.6066 MB / 1.268 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of Templates: time 0.004546/0.4475, allocations: 1.166 MB / 1.269 GB, free: 5.141 MB / 0.9825 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=400 -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/jenkins1/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