Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 111.8 kB / 18.14 MB, free: 3.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 202 kB / 21.43 MB, free: 0.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 250.2 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.778/2.778, allocations: 476.7 MB / 0.7637 GB, free: 10.08 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 63.89 kB / 1.108 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7595/0.7615, allocations: 168.7 MB / 1.273 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002398/0.7639, allocations: 0.8612 MB / 1.274 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003208/0.7642, allocations: 91.62 kB / 1.274 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.7643, allocations: 4 kB / 1.274 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.7644, allocations: 23.78 kB / 1.274 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.7646, allocations: 19.86 kB / 1.274 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.561e-05/0.7647, allocations: 35.97 kB / 1.274 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.7651, allocations: 251.4 kB / 1.274 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.7655, allocations: 186.2 kB / 1.274 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.7656, allocations: 127.5 kB / 1.274 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.7659, allocations: 143.3 kB / 1.275 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.7659, allocations: 35.98 kB / 1.275 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.614e-05/0.766, allocations: 36 kB / 1.275 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.7661, allocations: 83.72 kB / 1.275 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.7663, allocations: 155.1 kB / 1.275 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005054/0.7668, allocations: 456.1 kB / 1.275 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.7668, allocations: 8 kB / 1.275 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7668, allocations: 0 / 1.275 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.867e-06/0.7668, allocations: 0 / 1.275 GB, free: 1.836 MB / 0.9669 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.0008842/0.7677, allocations: 0.6077 MB / 1.276 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.7677, allocations: 8.031 kB / 1.276 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.063e-05/0.7678, allocations: 70.72 kB / 1.276 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.7679, allocations: 40.7 kB / 1.276 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.7684, allocations: 344.2 kB / 1.276 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.777e-05/0.7684, allocations: 33.03 kB / 1.276 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.7685, allocations: 40.36 kB / 1.276 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.7691, allocations: 400.2 kB / 1.277 GB, free: 204 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.7691, allocations: 3.938 kB / 1.277 GB, free: 200 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.7691, allocations: 12 kB / 1.277 GB, free: 188 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.7691, allocations: 8 kB / 1.277 GB, free: 180 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.7696, allocations: 299.7 kB / 1.277 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.7713, allocations: 1.061 MB / 1.278 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.7714, allocations: 85.22 kB / 1.278 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.13e-05/0.7715, allocations: 47.33 kB / 1.278 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.7715, allocations: 4 kB / 1.278 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.7716, allocations: 38.5 kB / 1.278 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.7716, allocations: 0 / 1.278 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003666/0.7719, allocations: 173.3 kB / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.772, allocations: 81.11 kB / 1.278 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005987/0.7726, allocations: 0.5092 MB / 1.279 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.7726, allocations: 25.7 kB / 1.279 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.7728, allocations: 203.8 kB / 1.279 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.7728, allocations: 15.89 kB / 1.279 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.507e-05/0.7729, allocations: 57.64 kB / 1.279 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.773, allocations: 346.8 kB / 1.28 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.7732, allocations: 71.88 kB / 1.28 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.7733, allocations: 87.08 kB / 1.28 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.7735, allocations: 117.5 kB / 1.28 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.7735, allocations: 0 / 1.28 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003101/0.7738, allocations: 205.4 kB / 1.28 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.7738, allocations: 8 kB / 1.28 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.7738, allocations: 3.938 kB / 1.28 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.7738, allocations: 11.92 kB / 1.28 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.774, allocations: 20 kB / 1.28 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.774, allocations: 4 kB / 1.28 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.551e-05/0.7741, allocations: 39.62 kB / 1.28 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.7741, allocations: 11.98 kB / 1.28 GB, free: 12.53 MB / 0.9825 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.0002084/0.7743, allocations: 200.5 kB / 1.28 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.507e-05/0.7744, allocations: 31.81 kB / 1.28 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.7746, allocations: 114.4 kB / 1.28 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.7746, allocations: 4.125 kB / 1.28 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.7746, allocations: 4 kB / 1.28 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.7746, allocations: 7.922 kB / 1.281 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006582/0.7753, allocations: 0.6604 MB / 1.281 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7753, allocations: 0 / 1.281 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.7753, allocations: 7.938 kB / 1.281 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.7753, allocations: 4 kB / 1.281 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.7753, allocations: 0 / 1.281 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.7753, allocations: 3.984 kB / 1.281 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.7753, allocations: 4 kB / 1.281 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001553/0.7755, allocations: 127.6 kB / 1.281 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.7756, allocations: 128.9 kB / 1.281 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.7756, allocations: 4 kB / 1.281 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.079e-05/0.7757, allocations: 0 / 1.281 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/0.7757, allocations: 11.94 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.7757, allocations: 4 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004343/0.7761, allocations: 387 kB / 1.282 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.7761, allocations: 0 / 1.282 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002534/0.7764, allocations: 47.89 kB / 1.282 GB, free: 10.66 MB / 0.9825 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.00049/0.7769, allocations: 0.6732 MB / 1.283 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000226/0.7771, allocations: 95.89 kB / 1.283 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.7771, allocations: 3.938 kB / 1.283 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.086e-05/0.7771, allocations: 19.92 kB / 1.283 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.7774, allocations: 29.81 kB / 1.283 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.7809, allocations: 2.926 MB / 1.286 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.7813, allocations: 0.7909 MB / 1.286 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000114/0.7814, allocations: 58.94 kB / 1.286 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.7815, allocations: 91.41 kB / 1.286 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of SimCode: time 5.51e-07/0.7815, allocations: 0 / 1.286 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.812, allocations: 5.68 MB / 1.292 GB, free: 248 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.36/9.172, allocations: 6.344 kB / 1.292 GB, free: 248 kB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.070520806126297]