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.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.0007685/0.0007685, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.0007789/0.0007789, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.8356/0.8356, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.717/1.717, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.876e-06/2.876e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.194e-05/2.482e-05, allocations: 4.953 kB / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001404/0.001429, allocations: 0.8249 MB / 1 GB, free: 12.7 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002265/0.001655, allocations: 95.62 kB / 1.001 GB, free: 12.6 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.001727, allocations: 4 kB / 1.001 GB, free: 12.6 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.001833, allocations: 19.8 kB / 1.001 GB, free: 12.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001216/0.001955, allocations: 23.8 kB / 1.001 GB, free: 12.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 6.283e-05/0.002018, allocations: 43.94 kB / 1.001 GB, free: 12.51 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.002211, allocations: 255.4 kB / 1.001 GB, free: 12.26 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.002437, allocations: 170.8 kB / 1.001 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.002556, allocations: 187.6 kB / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.002668, allocations: 131.6 kB / 1.001 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.002707, allocations: 32 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 2.647e-05/0.002733, allocations: 32 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.002793, allocations: 87.73 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.258e-05/0.002855, allocations: 95.7 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.003133, allocations: 474.4 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.003135, allocations: 0 / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.082e-06/0.003136, allocations: 0 / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.003141, allocations: 3.938 kB / 1.002 GB, free: 11.07 MB / 0.9636 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.0004403/0.003581, allocations: 0.5228 MB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.003614, allocations: 8.75 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.861e-05/0.003663, allocations: 70.72 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.003703, allocations: 44.66 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.004003, allocations: 281.7 kB / 1.003 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.004043, allocations: 37.03 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.00407, allocations: 36.38 kB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.004478, allocations: 400 kB / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.004488, allocations: 192 / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.004508, allocations: 16.38 kB / 1.003 GB, free: 9.59 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.004517, allocations: 16.11 kB / 1.003 GB, free: 9.574 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.004823, allocations: 299.8 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000917/0.00574, allocations: 0.9615 MB / 1.005 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.005844, allocations: 81.22 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.231e-05/0.005886, allocations: 49.8 kB / 1.005 GB, free: 8.117 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.005902, allocations: 0 / 1.005 GB, free: 8.117 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.005923, allocations: 42.5 kB / 1.005 GB, free: 8.066 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.005924, allocations: 0 / 1.005 GB, free: 8.066 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002772/0.006201, allocations: 161.4 kB / 1.005 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.006236, allocations: 85.05 kB / 1.005 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.006578, allocations: 0.5169 MB / 1.006 GB, free: 7.273 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.006587, allocations: 25.7 kB / 1.006 GB, free: 7.242 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 9.518e-05/0.006682, allocations: 207.7 kB / 1.006 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.072e-05/0.006693, allocations: 15.92 kB / 1.006 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.006742, allocations: 57.66 kB / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.006823, allocations: 350.7 kB / 1.006 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.761e-05/0.006891, allocations: 67.95 kB / 1.006 GB, free: 6.539 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.53e-05/0.006966, allocations: 91.12 kB / 1.006 GB, free: 6.445 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.007068, allocations: 121.5 kB / 1.006 GB, free: 6.32 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.007069, allocations: 0 / 1.006 GB, free: 6.32 MB / 0.9636 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003018/0.007371, allocations: 201.4 kB / 1.007 GB, free: 6.117 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.007384, allocations: 8 kB / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.007388, allocations: 0 / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.007399, allocations: 384 / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.007494, allocations: 35.92 kB / 1.007 GB, free: 6.074 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.007498, allocations: 4 kB / 1.007 GB, free: 6.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.261e-05/0.007541, allocations: 39.61 kB / 1.007 GB, free: 6.031 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.007553, allocations: 8 kB / 1.007 GB, free: 6.023 MB / 0.9636 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.0001309/0.007684, allocations: 207.7 kB / 1.007 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.44e-05/0.007719, allocations: 35.77 kB / 1.007 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.007854, allocations: 110.3 kB / 1.007 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.007856, allocations: 0 / 1.007 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.00786, allocations: 8 kB / 1.007 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.007864, allocations: 7.938 kB / 1.007 GB, free: 5.645 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003352/0.008199, allocations: 0.6009 MB / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.008201, allocations: 0 / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.564e-05/0.008216, allocations: 7.984 kB / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.008219, allocations: 3.938 kB / 1.008 GB, free: 4.969 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-06/0.008224, allocations: 4 kB / 1.008 GB, free: 4.965 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.008227, allocations: 3.938 kB / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.008227, allocations: 0 / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.782e-05/0.008305, allocations: 123.7 kB / 1.008 GB, free: 4.812 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.008347, allocations: 55.69 kB / 1.008 GB, free: 4.758 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.008365, allocations: 7.938 kB / 1.008 GB, free: 4.75 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.177e-05/0.008397, allocations: 4 kB / 1.008 GB, free: 4.746 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.008414, allocations: 4 kB / 1.008 GB, free: 4.742 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-06/0.008416, allocations: 3.938 kB / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002537/0.00867, allocations: 391 kB / 1.008 GB, free: 4.359 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.00867, allocations: 0 / 1.008 GB, free: 4.359 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001518/0.008822, allocations: 43.95 kB / 1.008 GB, free: 4.316 MB / 0.9636 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.0002483/0.00907, allocations: 0.6694 MB / 1.009 GB, free: 3.609 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001385/0.009208, allocations: 111.8 kB / 1.009 GB, free: 3.5 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.00921, allocations: 0 / 1.009 GB, free: 3.5 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.471e-05/0.009224, allocations: 12 kB / 1.009 GB, free: 3.488 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.009395, allocations: 25.66 kB / 1.009 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.01204, allocations: 2.912 MB / 1.012 GB, free: 456 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.01217, allocations: 187.8 kB / 1.012 GB, free: 244 kB / 0.9636 GB Notification: Performance of simCode: alias equations: time 6.655e-05/0.01223, allocations: 58.92 kB / 1.012 GB, free: 188 kB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.901e-05/0.01232, allocations: 92.47 kB / 1.012 GB, free: 96 kB / 0.9636 GB Notification: Performance of SimCode: time 9.42e-07/0.01232, allocations: 11.94 kB / 1.012 GB, free: 84 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.02893, allocations: 6.455 MB / 1.019 GB, free: 9.809 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.688/6.717, allocations: 10.72 kB / 1.019 GB, free: 9.801 MB / 0.9792 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable idxFirTru.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTru.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! Error: Could not read variable idxFirTruAllFal.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTruAllFal.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.660812621936202]