Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 112.1 kB / 16.41 MB, free: 6.477 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.00137/0.00137, allocations: 183 kB / 17.34 MB, free: 5.754 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.354/1.354, 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.619/2.619, allocations: 461.9 MB / 0.7354 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.91 kB / 1.055 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7015/0.7029, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002063/0.705, allocations: 0.8589 MB / 1.209 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003332/0.7054, allocations: 95.64 kB / 1.209 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.7055, allocations: 8 kB / 1.209 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.7056, allocations: 15.8 kB / 1.209 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.7058, allocations: 19.86 kB / 1.209 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.147e-05/0.7059, allocations: 35.97 kB / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.7062, allocations: 259.4 kB / 1.21 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.7066, allocations: 290.3 kB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.7067, allocations: 131.5 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.7069, allocations: 147.2 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.707, allocations: 36 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.51e-05/0.707, allocations: 32 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.425e-05/0.7071, allocations: 79.78 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.7073, allocations: 159.1 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.7077, allocations: 462.3 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7077, allocations: 0 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.382e-06/0.7077, allocations: 0 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.552e-05/0.7077, allocations: 0 / 1.211 GB, free: 11.07 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0007152/0.7085, allocations: 0.5942 MB / 1.212 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.7085, allocations: 11.97 kB / 1.212 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.316e-05/0.7086, allocations: 40.47 kB / 1.212 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004167/0.709, allocations: 328.2 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.331e-05/0.7091, allocations: 41.02 kB / 1.212 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.7091, allocations: 32.38 kB / 1.212 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.7097, allocations: 396.2 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.7097, allocations: 4.125 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.7098, allocations: 19.94 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.7098, allocations: 11.94 kB / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.7102, allocations: 299.6 kB / 1.213 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.7116, allocations: 1.053 MB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.7117, allocations: 93.16 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.796e-05/0.7118, allocations: 45.78 kB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.7118, allocations: 0 / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.7118, allocations: 38.56 kB / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.7118, allocations: 0 / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003139/0.7122, allocations: 165.2 kB / 1.214 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.7122, allocations: 89.03 kB / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/0.7127, allocations: 0.4974 MB / 1.215 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.7128, allocations: 29.7 kB / 1.215 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.7129, allocations: 203.5 kB / 1.215 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.7129, allocations: 19.73 kB / 1.215 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.713, allocations: 53.7 kB / 1.215 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7132, allocations: 354.7 kB / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.7133, allocations: 67.95 kB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.7134, allocations: 85.58 kB / 1.215 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.7136, allocations: 121.5 kB / 1.215 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7136, allocations: 0 / 1.215 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002924/0.7139, allocations: 209.2 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.7139, allocations: 9.875 kB / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.7139, allocations: 0 / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.7139, allocations: 0 / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.7141, allocations: 35.86 kB / 1.216 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.7141, allocations: 4 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.167e-05/0.7142, allocations: 31.59 kB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.7142, allocations: 4 kB / 1.216 GB, free: 5.875 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001876/0.7144, allocations: 200 kB / 1.216 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.7145, allocations: 35.61 kB / 1.216 GB, free: 5.637 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.7147, allocations: 114 kB / 1.216 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.7147, allocations: 3.938 kB / 1.216 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.7147, allocations: 0 / 1.216 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.7147, allocations: 4 kB / 1.216 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005242/0.7152, allocations: 0.6641 MB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.7153, allocations: 0 / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.443e-05/0.7153, allocations: 7.984 kB / 1.217 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.758e-06/0.7153, allocations: 4 kB / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.7153, allocations: 0 / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.7153, allocations: 0 / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7153, allocations: 4 kB / 1.217 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.7155, allocations: 139.6 kB / 1.217 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.765e-05/0.7156, allocations: 120.7 kB / 1.217 GB, free: 4.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.7156, allocations: 4 kB / 1.217 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.116e-05/0.7157, allocations: 192 / 1.217 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.7157, allocations: 4 kB / 1.217 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.7157, allocations: 7.938 kB / 1.217 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003952/0.7161, allocations: 391 kB / 1.217 GB, free: 4.059 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7161, allocations: 0 / 1.217 GB, free: 4.059 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002454/0.7164, allocations: 47.84 kB / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001072/0.7165, allocations: 103.2 kB / 1.218 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001948/0.7167, allocations: 103.9 kB / 1.218 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.7167, allocations: 4 kB / 1.218 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.7167, allocations: 23.92 kB / 1.218 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.717, allocations: 33.5 kB / 1.218 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007288/0.7177, allocations: 0.5274 MB / 1.218 GB, free: 3.168 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.7181, allocations: 0.7911 MB / 1.219 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.7181, allocations: 19.44 kB / 1.219 GB, free: 2.336 MB / 0.9356 GB Notification: Performance of SimCode: time 3.51e-07/0.7181, allocations: 4 kB / 1.219 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of Templates: time 0.005866/0.724, allocations: 3.818 MB / 1.223 GB, free: 14.52 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches