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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 76.44 kB / 19.17 MB, free: 0.7305 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 169.9 kB / 22.46 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8784/0.8784, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.642/1.642, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.014e-06/2.014e-06, allocations: 0 / 0.9505 GB, free: 2.363 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.537e-05/1.738e-05, allocations: 2.281 kB / 0.9505 GB, free: 2.359 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001316/0.001333, allocations: 0.8317 MB / 0.9513 GB, free: 1.523 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0002285/0.001562, allocations: 91.69 kB / 0.9514 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.695e-05/0.001639, allocations: 7.938 kB / 0.9514 GB, free: 1.426 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.001754, allocations: 23.78 kB / 0.9514 GB, free: 1.402 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.001877, allocations: 19.8 kB / 0.9514 GB, free: 1.383 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 6.206e-05/0.001939, allocations: 43.95 kB / 0.9515 GB, free: 1.34 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.002132, allocations: 251.4 kB / 0.9517 GB, free: 1.094 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.002353, allocations: 174.8 kB / 0.9519 GB, free: 0.9219 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.002473, allocations: 191.6 kB / 0.9521 GB, free: 0.7344 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.002587, allocations: 119.7 kB / 0.9522 GB, free: 0.6172 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.002633, allocations: 32 kB / 0.9522 GB, free: 0.5859 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 2.792e-05/0.002661, allocations: 36 kB / 0.9523 GB, free: 0.5508 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.84e-05/0.002719, allocations: 95.67 kB / 0.9523 GB, free: 468 kB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.002783, allocations: 83.77 kB / 0.9524 GB, free: 384 kB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.003071, allocations: 470.4 kB / 0.9529 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.003073, allocations: 0 / 0.9529 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.112e-06/0.003074, allocations: 0 / 0.9529 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.003079, allocations: 3.938 kB / 0.9529 GB, free: 15.91 MB / 0.8698 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.0005322/0.003611, allocations: 0.5324 MB / 0.9534 GB, free: 15.34 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.003649, allocations: 12.03 kB / 0.9534 GB, free: 15.33 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.0037, allocations: 70.72 kB / 0.9535 GB, free: 15.25 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.003738, allocations: 40.66 kB / 0.9535 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.00401, allocations: 273.8 kB / 0.9538 GB, free: 14.92 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.004051, allocations: 41.02 kB / 0.9538 GB, free: 14.88 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.004074, allocations: 28.38 kB / 0.9538 GB, free: 14.85 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.004441, allocations: 404 kB / 0.9542 GB, free: 14.45 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.00445, allocations: 192 / 0.9542 GB, free: 14.45 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.004467, allocations: 12.38 kB / 0.9542 GB, free: 14.43 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.004476, allocations: 12.12 kB / 0.9542 GB, free: 14.42 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.004778, allocations: 299.6 kB / 0.9545 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008803/0.005658, allocations: 0.9654 MB / 0.9555 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.005766, allocations: 93.16 kB / 0.9556 GB, free: 13 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.263e-05/0.005808, allocations: 49.78 kB / 0.9556 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.005827, allocations: 4 kB / 0.9556 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.005845, allocations: 30.56 kB / 0.9556 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.005845, allocations: 0 / 0.9556 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0002386/0.006084, allocations: 173.3 kB / 0.9558 GB, free: 12.73 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.006119, allocations: 81.05 kB / 0.9559 GB, free: 12.63 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.006459, allocations: 0.513 MB / 0.9564 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.006469, allocations: 25.7 kB / 0.9564 GB, free: 12.08 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.981e-05/0.006569, allocations: 207.7 kB / 0.9566 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.00658, allocations: 19.91 kB / 0.9566 GB, free: 11.86 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.006628, allocations: 53.69 kB / 0.9567 GB, free: 11.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.031e-05/0.006709, allocations: 342.8 kB / 0.957 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.806e-05/0.006777, allocations: 67.95 kB / 0.9571 GB, free: 11.39 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.36e-05/0.00685, allocations: 85.66 kB / 0.9572 GB, free: 11.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.006952, allocations: 121.5 kB / 0.9573 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.006954, allocations: 4 kB / 0.9573 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001768/0.007131, allocations: 209.3 kB / 0.9575 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.007143, allocations: 4 kB / 0.9575 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.007147, allocations: 0 / 0.9575 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.007158, allocations: 4 kB / 0.9575 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.331e-05/0.007251, allocations: 31.92 kB / 0.9575 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.007256, allocations: 4 kB / 0.9575 GB, free: 10.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.429e-05/0.007301, allocations: 39.61 kB / 0.9576 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.007312, allocations: 4 kB / 0.9576 GB, free: 10.87 MB / 0.8698 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.0001216/0.007434, allocations: 204.1 kB / 0.9578 GB, free: 10.66 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.007468, allocations: 35.77 kB / 0.9578 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.007613, allocations: 122.1 kB / 0.9579 GB, free: 10.49 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.007615, allocations: 0 / 0.9579 GB, free: 10.49 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.007619, allocations: 4 kB / 0.9579 GB, free: 10.49 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.007622, allocations: 3.938 kB / 0.9579 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003238/0.007946, allocations: 0.6049 MB / 0.9585 GB, free: 9.816 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.007947, allocations: 0 / 0.9585 GB, free: 9.816 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.473e-05/0.007962, allocations: 4 kB / 0.9585 GB, free: 9.812 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.007966, allocations: 7.938 kB / 0.9585 GB, free: 9.805 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.007971, allocations: 192 / 0.9585 GB, free: 9.805 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.007972, allocations: 4 kB / 0.9585 GB, free: 9.801 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.007974, allocations: 7.938 kB / 0.9585 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.894e-05/0.008053, allocations: 127.7 kB / 0.9586 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.008093, allocations: 47.67 kB / 0.9587 GB, free: 9.594 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.008111, allocations: 11.89 kB / 0.9587 GB, free: 9.582 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.794e-05/0.008139, allocations: 0 / 0.9587 GB, free: 9.582 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.82e-05/0.008158, allocations: 11.98 kB / 0.9587 GB, free: 9.57 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.008161, allocations: 4 kB / 0.9587 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002565/0.008417, allocations: 391 kB / 0.9591 GB, free: 9.191 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.008417, allocations: 0 / 0.9591 GB, free: 9.191 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001576/0.008575, allocations: 36 kB / 0.9591 GB, free: 9.156 MB / 0.8698 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.0002438/0.008819, allocations: 0.6694 MB / 0.9598 GB, free: 8.449 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.008956, allocations: 103.8 kB / 0.9599 GB, free: 8.348 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.008957, allocations: 0 / 0.9599 GB, free: 8.348 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.424e-05/0.008972, allocations: 12 kB / 0.9599 GB, free: 8.336 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.009145, allocations: 33.64 kB / 0.9599 GB, free: 8.301 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.01118, allocations: 2.921 MB / 0.9628 GB, free: 5.277 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.01129, allocations: 179.5 kB / 0.9629 GB, free: 5.082 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.93e-05/0.01136, allocations: 58.94 kB / 0.963 GB, free: 5.023 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.01146, allocations: 96.47 kB / 0.9631 GB, free: 4.926 MB / 0.8698 GB Notification: Performance of SimCode: time 5.71e-07/0.01146, allocations: 0 / 0.9631 GB, free: 4.926 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.02844, allocations: 6.465 MB / 0.9694 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.003, allocations: 12.95 kB / 0.9694 GB, free: 14.62 MB / 0.8855 GB " [Timeout remaining time 293] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.903590413741767]