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.00182/0.00182, allocations: 106.7 kB / 16.45 MB, free: 6.035 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.002073/0.002073, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.398/1.398, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.737/2.737, allocations: 476.7 MB / 0.7611 GB, free: 11.29 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.001926/0.001926, allocations: 67.89 kB / 1.104 GB, free: 9.285 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7003/0.7022, allocations: 168.7 MB / 1.269 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.00218/0.7044, allocations: 0.8792 MB / 1.27 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002431/0.7047, allocations: 83.7 kB / 1.27 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.831e-05/0.7048, allocations: 7.938 kB / 1.27 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.7049, allocations: 19.8 kB / 1.27 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.705, allocations: 15.86 kB / 1.27 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 7.577e-05/0.7051, allocations: 35.97 kB / 1.27 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.7054, allocations: 263.4 kB / 1.27 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.7058, allocations: 234.2 kB / 1.27 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.7059, allocations: 131.5 kB / 1.27 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.7061, allocations: 147.3 kB / 1.27 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.913e-05/0.7061, allocations: 32 kB / 1.271 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.15e-05/0.7062, allocations: 32 kB / 1.271 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.304e-05/0.7063, allocations: 83.77 kB / 1.271 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.7064, allocations: 155.1 kB / 1.271 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.7068, allocations: 464 kB / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7068, allocations: 0 / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7068, allocations: 0 / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.7068, allocations: 4 kB / 1.271 GB, free: 2.633 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.000703/0.7075, allocations: 0.6038 MB / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.7076, allocations: 8.031 kB / 1.272 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.104e-05/0.7077, allocations: 74.72 kB / 1.272 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.7077, allocations: 36.7 kB / 1.272 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.7082, allocations: 340.2 kB / 1.272 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.7082, allocations: 37.02 kB / 1.272 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.7083, allocations: 36.31 kB / 1.272 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.7089, allocations: 396.2 kB / 1.273 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.7089, allocations: 11.88 kB / 1.273 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.709, allocations: 12 kB / 1.273 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.709, allocations: 8 kB / 1.273 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.7095, allocations: 303.6 kB / 1.273 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.7109, allocations: 1.058 MB / 1.274 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.711, allocations: 89.16 kB / 1.274 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.598e-05/0.7111, allocations: 43.34 kB / 1.274 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.7111, allocations: 3.984 kB / 1.274 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.7112, allocations: 30.56 kB / 1.274 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.7112, allocations: 4 kB / 1.274 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003268/0.7115, allocations: 181.2 kB / 1.274 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.7116, allocations: 77.11 kB / 1.274 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.7121, allocations: 0.5092 MB / 1.275 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.7121, allocations: 25.7 kB / 1.275 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.7123, allocations: 203.8 kB / 1.275 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.7123, allocations: 15.88 kB / 1.275 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.861e-05/0.7124, allocations: 57.66 kB / 1.275 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.7126, allocations: 350.7 kB / 1.276 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.7127, allocations: 71.95 kB / 1.276 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.7128, allocations: 85.66 kB / 1.276 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.713, allocations: 121.5 kB / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.713, allocations: 0 / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002993/0.7133, allocations: 205.4 kB / 1.276 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.7133, allocations: 4 kB / 1.276 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.7133, allocations: 8 kB / 1.276 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7133, allocations: 3.938 kB / 1.276 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.7134, allocations: 31.92 kB / 1.276 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.7134, allocations: 0 / 1.276 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.672e-05/0.7135, allocations: 43.62 kB / 1.276 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.7135, allocations: 7.938 kB / 1.276 GB, free: 13.32 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.0002005/0.7137, allocations: 200.5 kB / 1.276 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.7138, allocations: 31.81 kB / 1.276 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002048/0.714, allocations: 114 kB / 1.276 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.714, allocations: 7.938 kB / 1.276 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.714, allocations: 0 / 1.276 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.714, allocations: 0 / 1.276 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006029/0.7146, allocations: 0.6643 MB / 1.277 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.7146, allocations: 0 / 1.277 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.079e-05/0.7147, allocations: 4 kB / 1.277 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.7147, allocations: 0 / 1.277 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.7147, allocations: 4 kB / 1.277 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.7147, allocations: 0 / 1.277 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7147, allocations: 0 / 1.277 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.7148, allocations: 135.5 kB / 1.277 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.7149, allocations: 120.9 kB / 1.277 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.715, allocations: 0 / 1.277 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.103e-05/0.715, allocations: 8 kB / 1.277 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.715, allocations: 4.406 kB / 1.277 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.715, allocations: 4 kB / 1.277 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004626/0.7155, allocations: 395 kB / 1.278 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.7155, allocations: 192 / 1.278 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002359/0.7157, allocations: 43.89 kB / 1.278 GB, free: 11.47 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.0004813/0.7162, allocations: 0.6771 MB / 1.278 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002044/0.7164, allocations: 99.88 kB / 1.279 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7164, allocations: 3.938 kB / 1.279 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.807e-05/0.7164, allocations: 16 kB / 1.279 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.7167, allocations: 27.61 kB / 1.279 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/0.7199, allocations: 2.915 MB / 1.281 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.7203, allocations: 0.7909 MB / 1.282 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000116/0.7205, allocations: 58.94 kB / 1.282 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.7206, allocations: 99.39 kB / 1.282 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of SimCode: time 3.91e-07/0.7206, allocations: 0 / 1.282 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9444/1.665, allocations: 5.706 MB / 1.288 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.127/10.79, allocations: 9.438 kB / 1.288 GB, free: 1.07 MB / 0.9825 GB " [Timeout remaining time 289] (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: 16.872024226002395]