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.007004/0.007004, allocations: 105.4 kB / 15.74 MB, free: 6.004 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.001635/0.001635, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.678/2.678, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.89 kB / 1.054 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7787/0.7802, allocations: 157.4 MB / 1.207 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002123/0.7823, allocations: 0.8669 MB / 1.208 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003164/0.7827, allocations: 91.62 kB / 1.208 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.7828, allocations: 4 kB / 1.208 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.7829, allocations: 19.8 kB / 1.208 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.7831, allocations: 15.86 kB / 1.208 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.409e-05/0.7832, allocations: 35.97 kB / 1.208 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000268/0.7835, allocations: 259.4 kB / 1.209 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.7839, allocations: 294.3 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.7841, allocations: 131.5 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.7842, allocations: 143.3 kB / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.7843, allocations: 40 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.507e-05/0.7843, allocations: 32 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.997e-05/0.7844, allocations: 79.78 kB / 1.209 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.7846, allocations: 155.1 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.785, allocations: 462.3 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.785, allocations: 4 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.445e-06/0.785, allocations: 3.938 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.126e-05/0.7851, allocations: 0 / 1.21 GB, free: 10.93 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.0008815/0.786, allocations: 0.5909 MB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.786, allocations: 12.03 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.701e-05/0.7861, allocations: 74.72 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.7862, allocations: 44.47 kB / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.7866, allocations: 324.2 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.7867, allocations: 33.02 kB / 1.211 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.7867, allocations: 36.38 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.7873, allocations: 400.2 kB / 1.211 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.7873, allocations: 11.88 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.7874, allocations: 12 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.7874, allocations: 11.98 kB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.7878, allocations: 299.6 kB / 1.212 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.7891, allocations: 1.053 MB / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.7893, allocations: 93.22 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.749e-05/0.7894, allocations: 49.78 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.7894, allocations: 4 kB / 1.213 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.7894, allocations: 34.5 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.482e-06/0.7894, allocations: 0 / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003427/0.7898, allocations: 161.2 kB / 1.213 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.7898, allocations: 97.03 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005396/0.7904, allocations: 0.5013 MB / 1.214 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.7904, allocations: 25.7 kB / 1.214 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.7906, allocations: 199.5 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.7906, allocations: 23.73 kB / 1.214 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-05/0.7907, allocations: 49.7 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.7908, allocations: 346.8 kB / 1.214 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.791, allocations: 67.95 kB / 1.214 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.7911, allocations: 93.58 kB / 1.214 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.7912, allocations: 117.5 kB / 1.214 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.7912, allocations: 0 / 1.214 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002968/0.7915, allocations: 209.2 kB / 1.215 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.7916, allocations: 4 kB / 1.215 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.7916, allocations: 0 / 1.215 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.7916, allocations: 8.312 kB / 1.215 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.7917, allocations: 27.92 kB / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.7918, allocations: 4 kB / 1.215 GB, free: 5.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.845e-05/0.7919, allocations: 35.59 kB / 1.215 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.7919, allocations: 8 kB / 1.215 GB, free: 5.652 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.0001872/0.7921, allocations: 203.9 kB / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.7922, allocations: 31.62 kB / 1.215 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.7924, allocations: 114 kB / 1.215 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.7924, allocations: 8 kB / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.7924, allocations: 7.938 kB / 1.215 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.7924, allocations: 0 / 1.215 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005157/0.7929, allocations: 0.6486 MB / 1.216 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.793, allocations: 0 / 1.216 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.94e-05/0.793, allocations: 8.109 kB / 1.216 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.793, allocations: 11.94 kB / 1.216 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.793, allocations: 0 / 1.216 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.793, allocations: 0 / 1.216 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.793, allocations: 8.188 kB / 1.216 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.7932, allocations: 131.2 kB / 1.216 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.292e-05/0.7933, allocations: 120.7 kB / 1.216 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.7933, allocations: 4 kB / 1.216 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.452e-05/0.7934, allocations: 4 kB / 1.216 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.391e-05/0.7934, allocations: 7.938 kB / 1.216 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.7934, allocations: 4 kB / 1.216 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003925/0.7938, allocations: 391 kB / 1.216 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.7938, allocations: 0 / 1.216 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002498/0.7941, allocations: 43.84 kB / 1.216 GB, free: 3.793 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.0004231/0.7945, allocations: 0.6692 MB / 1.217 GB, free: 3.082 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.7947, allocations: 111.9 kB / 1.217 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.7948, allocations: 0 / 1.217 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.748e-05/0.7948, allocations: 15.94 kB / 1.217 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.7951, allocations: 27.59 kB / 1.217 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.7984, allocations: 2.898 MB / 1.22 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.7987, allocations: 0.7912 MB / 1.221 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001168/0.7988, allocations: 54.94 kB / 1.221 GB, free: 15.06 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.799, allocations: 95.41 kB / 1.221 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of SimCode: time 6.51e-07/0.799, allocations: 0 / 1.221 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02502/0.824, allocations: 5.687 MB / 1.226 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.617, allocations: 9.328 kB / 1.226 GB, free: 9.434 MB / 0.9512 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