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.001169/0.001169, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001132/0.001132, allocations: 192.4 kB / 16.25 MB, free: 6.641 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.159/1.159, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.372/2.372, allocations: 461.9 MB / 0.7344 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 66.55 kB / 0.8987 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2179, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001855/0.2198, allocations: 0.9318 MB / 1.053 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002296/0.22, allocations: 87.64 kB / 1.053 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.957e-05/0.2201, allocations: 7.938 kB / 1.053 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.2203, allocations: 15.86 kB / 1.053 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.2204, allocations: 7.938 kB / 1.053 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.034e-05/0.2204, allocations: 43.95 kB / 1.053 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.2207, allocations: 243.5 kB / 1.054 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.221, allocations: 298.3 kB / 1.054 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.2211, allocations: 131.5 kB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.2212, allocations: 139.3 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.837e-05/0.2213, allocations: 36 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.635e-05/0.2213, allocations: 32 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.91e-05/0.2214, allocations: 87.7 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2215, allocations: 151.1 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.2218, allocations: 442.6 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2219, allocations: 3.938 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2219, allocations: 4 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.2219, allocations: 0 / 1.055 GB, free: 6.027 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.0005954/0.2225, allocations: 0.5889 MB / 1.056 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.2225, allocations: 8.625 kB / 1.056 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.673e-05/0.2226, allocations: 70.72 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.2226, allocations: 44.47 kB / 1.056 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.223, allocations: 328.1 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.223, allocations: 37.02 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.2231, allocations: 32.38 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.2236, allocations: 404.2 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2236, allocations: 7.875 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.2236, allocations: 12 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2236, allocations: 8 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/0.224, allocations: 303.5 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.2252, allocations: 1.049 MB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.2253, allocations: 93.16 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.815e-05/0.2254, allocations: 53.78 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.2254, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.2254, allocations: 30.56 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.2254, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0002797/0.2257, allocations: 169.1 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.2257, allocations: 77.11 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.2262, allocations: 0.513 MB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.2262, allocations: 29.7 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2263, allocations: 207.5 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.2263, allocations: 11.81 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/0.2264, allocations: 57.69 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.399e-05/0.2265, allocations: 342.8 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.323e-05/0.2266, allocations: 71.95 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.871e-05/0.2267, allocations: 87.17 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.2268, allocations: 117.6 kB / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2269, allocations: 0 / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002498/0.2271, allocations: 217 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.2271, allocations: 4 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2271, allocations: 8 kB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.2272, allocations: 3.938 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.2273, allocations: 27.98 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2273, allocations: 3.938 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.2274, allocations: 27.62 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.2274, allocations: 16 kB / 1.06 GB, free: 0.7539 MB / 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.0001523/0.2275, allocations: 197.9 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.2276, allocations: 35.52 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.2278, allocations: 114 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2278, allocations: 11.92 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2278, allocations: 8 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.2278, allocations: 192 / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.2283, allocations: 0.6525 MB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2283, allocations: 3.938 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.169e-05/0.2283, allocations: 7.984 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2283, allocations: 4.125 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.2283, allocations: 0 / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2283, allocations: 4 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2283, allocations: 0 / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.2285, allocations: 131.2 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.047e-05/0.2285, allocations: 124.6 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.2286, allocations: 4 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.832e-05/0.2286, allocations: 4 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/0.2286, allocations: 4 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.2287, allocations: 4 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003377/0.229, allocations: 391 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.229, allocations: 0 / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002163/0.2292, allocations: 32 kB / 1.062 GB, free: 14.91 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.0003288/0.2296, allocations: 0.6769 MB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001738/0.2297, allocations: 107.9 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.2298, allocations: 4 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.416e-05/0.2298, allocations: 15.94 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.23, allocations: 25.56 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.2327, allocations: 2.985 MB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.233, allocations: 0.7909 MB / 1.066 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.406e-05/0.2331, allocations: 58.94 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.2332, allocations: 91.41 kB / 1.066 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2332, allocations: 0 / 1.066 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.05/1.283, allocations: 5.5 MB / 1.072 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/1.283, allocations: 235 kB / 1.072 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.256/4.539, allocations: 0 / 1.072 GB, free: 4.41 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