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.001366/0.001366, allocations: 108 kB / 16.41 MB, free: 6.027 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.00132/0.00132, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.598/2.598, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 64.09 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7169/0.7182, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.00227/0.7206, allocations: 0.8684 MB / 1.209 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003313/0.7209, allocations: 95.7 kB / 1.209 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.7211, allocations: 3.938 kB / 1.209 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.7212, allocations: 19.8 kB / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.7214, allocations: 19.84 kB / 1.209 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.7215, allocations: 39.97 kB / 1.209 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.7219, allocations: 251.4 kB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004371/0.7223, allocations: 294.3 kB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.7225, allocations: 127.6 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.7227, allocations: 147.3 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.7227, allocations: 36 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.062e-05/0.7228, allocations: 32 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.955e-05/0.7229, allocations: 87.72 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.7231, allocations: 159.1 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004381/0.7235, allocations: 450.4 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7235, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7235, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.185e-05/0.7236, allocations: 4 kB / 1.211 GB, free: 11.02 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.0008115/0.7244, allocations: 0.5941 MB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.7244, allocations: 12.03 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.922e-05/0.7245, allocations: 40.47 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.7249, allocations: 328.2 kB / 1.212 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.948e-05/0.725, allocations: 41.02 kB / 1.212 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.7251, allocations: 28.38 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006233/0.7257, allocations: 400.2 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.7257, allocations: 192 / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.7257, allocations: 15.94 kB / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.7258, allocations: 16 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.7262, allocations: 307.5 kB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.7276, allocations: 1.045 MB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.7278, allocations: 89.16 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.193e-05/0.7279, allocations: 53.78 kB / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.7279, allocations: 0 / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.7279, allocations: 30.56 kB / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.7279, allocations: 0 / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003494/0.7283, allocations: 173.1 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.7283, allocations: 81.05 kB / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005684/0.7289, allocations: 0.5091 MB / 1.215 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.7289, allocations: 25.7 kB / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.7291, allocations: 211.5 kB / 1.215 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.7291, allocations: 15.75 kB / 1.215 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.934e-05/0.7292, allocations: 53.69 kB / 1.215 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.7293, allocations: 346.8 kB / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.7294, allocations: 67.95 kB / 1.215 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.7296, allocations: 91.7 kB / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.7297, allocations: 113.7 kB / 1.215 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.7297, allocations: 7.938 kB / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003215/0.7301, allocations: 213.2 kB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.7301, allocations: 11.98 kB / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.7301, allocations: 0 / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.7301, allocations: 0 / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.7303, allocations: 31.88 kB / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.7303, allocations: 0 / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.206e-05/0.7304, allocations: 39.58 kB / 1.216 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.7304, allocations: 4.375 kB / 1.216 GB, free: 5.82 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.0002097/0.7306, allocations: 204 kB / 1.216 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.7307, allocations: 27.62 kB / 1.216 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.731, allocations: 118 kB / 1.216 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.731, allocations: 7.922 kB / 1.216 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.731, allocations: 0 / 1.216 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.731, allocations: 4.062 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000566/0.7316, allocations: 0.6563 MB / 1.217 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.7316, allocations: 0 / 1.217 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.637e-05/0.7316, allocations: 4 kB / 1.217 GB, free: 4.715 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.7316, allocations: 0 / 1.217 GB, free: 4.715 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.7316, allocations: 12.11 kB / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.7316, allocations: 0 / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.7316, allocations: 0 / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001412/0.7318, allocations: 135.1 kB / 1.217 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.617e-05/0.7319, allocations: 120.7 kB / 1.217 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.7319, allocations: 4 kB / 1.217 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.526e-05/0.732, allocations: 4 kB / 1.217 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.571e-05/0.732, allocations: 4 kB / 1.217 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.732, allocations: 0 / 1.217 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004331/0.7325, allocations: 391 kB / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.51e-07/0.7325, allocations: 0 / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002644/0.7327, allocations: 43.84 kB / 1.217 GB, free: 3.973 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.0001189/0.7329, allocations: 111.2 kB / 1.218 GB, free: 3.852 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002159/0.7331, allocations: 104.2 kB / 1.218 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.7331, allocations: 0 / 1.218 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.726e-05/0.7331, allocations: 19.92 kB / 1.218 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.7334, allocations: 33.62 kB / 1.218 GB, free: 3.699 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/0.7342, allocations: 0.5315 MB / 1.218 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.7345, allocations: 0.7909 MB / 1.219 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.942e-05/0.7346, allocations: 31.42 kB / 1.219 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.7346, allocations: 0 / 1.219 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of Templates: time 0.006311/0.7409, allocations: 3.809 MB / 1.223 GB, free: 14.48 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