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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00179/0.001791, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.388/2.388, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 66.06 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2517, allocations: 157.4 MB / 1.053 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002208/0.2539, allocations: 0.8661 MB / 1.054 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002834/0.2542, allocations: 91.64 kB / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.103e-05/0.2543, allocations: 0 / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.2545, allocations: 27.8 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2546, allocations: 11.86 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.91e-05/0.2547, allocations: 43.97 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.2549, allocations: 251.4 kB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003582/0.2553, allocations: 294.3 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.2555, allocations: 127.6 kB / 1.055 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.2556, allocations: 143.3 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.2557, allocations: 36 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.902e-05/0.2558, allocations: 32 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.385e-05/0.2558, allocations: 87.7 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.256, allocations: 155.1 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.2564, allocations: 434.6 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2564, allocations: 8 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2564, allocations: 3.938 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.2564, allocations: 0 / 1.055 GB, free: 5.652 MB / 0.8106 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.0006718/0.2571, allocations: 0.5889 MB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2571, allocations: 8.625 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.887e-05/0.2572, allocations: 78.66 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.2573, allocations: 40.47 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.2576, allocations: 324.2 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.2577, allocations: 37.02 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.2577, allocations: 40.31 kB / 1.057 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005394/0.2583, allocations: 404.2 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.2583, allocations: 7.922 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.2583, allocations: 12 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.2583, allocations: 8 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.2588, allocations: 299.6 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.2601, allocations: 1.053 MB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.2602, allocations: 89.22 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.652e-05/0.2603, allocations: 53.78 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.2603, allocations: 0 / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.2603, allocations: 38.5 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 8.22e-07/0.2603, allocations: 0 / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003075/0.2606, allocations: 165.2 kB / 1.059 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.2607, allocations: 85.05 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/0.2612, allocations: 0.513 MB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.2612, allocations: 25.7 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.2614, allocations: 203.5 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.2614, allocations: 15.8 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.2615, allocations: 57.69 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2616, allocations: 338.8 kB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.2617, allocations: 75.94 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.2619, allocations: 86.77 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.262, allocations: 117.5 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.262, allocations: 0 / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002744/0.2623, allocations: 209.1 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.2623, allocations: 4 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2623, allocations: 4 kB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2624, allocations: 3.938 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2625, allocations: 31.92 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2625, allocations: 0 / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.62e-05/0.2626, allocations: 39.62 kB / 1.06 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.2626, allocations: 7.984 kB / 1.06 GB, free: 380 kB / 0.8106 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.0001916/0.2628, allocations: 200 kB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.2629, allocations: 31.53 kB / 1.061 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.2631, allocations: 117.9 kB / 1.061 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.2631, allocations: 12.2 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2631, allocations: 0 / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2631, allocations: 3.984 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005444/0.2637, allocations: 0.649 MB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2637, allocations: 0 / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.403e-05/0.2637, allocations: 4.125 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2637, allocations: 7.938 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.2638, allocations: 4 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2638, allocations: 3.984 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2638, allocations: 192 / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.2639, allocations: 135.2 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.421e-05/0.264, allocations: 128.5 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.2641, allocations: 0 / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.26e-05/0.2641, allocations: 8 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.241e-05/0.2641, allocations: 3.938 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.2642, allocations: 4 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003969/0.2646, allocations: 391 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2646, allocations: 0 / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002398/0.2648, allocations: 32 kB / 1.062 GB, free: 14.52 MB / 0.8262 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.0004093/0.2652, allocations: 0.6769 MB / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001988/0.2654, allocations: 107.9 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2654, allocations: 0 / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.636e-05/0.2655, allocations: 19.92 kB / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.2657, allocations: 29.56 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.2687, allocations: 2.925 MB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.2691, allocations: 0.7912 MB / 1.066 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.2692, allocations: 58.94 kB / 1.066 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.2693, allocations: 87.41 kB / 1.067 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.2693, allocations: 0 / 1.067 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08023/0.3496, allocations: 5.565 MB / 1.072 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/7.311, allocations: 21.59 kB / 1.072 GB, free: 4.211 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > 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