Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.0007714/0.0007714, allocations: 72.45 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.0007979/0.0007979, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.8689/0.8689, allocations: 177.1 MB / 202.8 MB, free: 5.707 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.686/1.686, allocations: 389 MB / 0.633 GB, free: 12.65 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.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.728e-06/1.12e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001112/0.001123, allocations: 0.7067 MB / 1 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0001721/0.001296, allocations: 43.84 kB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.36e-05/0.001359, allocations: 4 kB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.00146, allocations: 19.8 kB / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.001568, allocations: 15.92 kB / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 4.295e-05/0.001611, allocations: 19.98 kB / 1 GB, free: 12.71 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.001765, allocations: 187.5 kB / 1.001 GB, free: 12.53 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.001946, allocations: 137.3 kB / 1.001 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.766e-05/0.002034, allocations: 147.7 kB / 1.001 GB, free: 12.25 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.548e-05/0.00212, allocations: 103.8 kB / 1.001 GB, free: 12.15 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.002153, allocations: 28 kB / 1.001 GB, free: 12.12 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 2.003e-05/0.002173, allocations: 24 kB / 1.001 GB, free: 12.1 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.00222, allocations: 71.75 kB / 1.001 GB, free: 12.03 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.18e-05/0.002272, allocations: 75.78 kB / 1.001 GB, free: 11.96 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.002497, allocations: 382.6 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.714e-06/0.002498, allocations: 4 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.71e-07/0.002499, allocations: 0 / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.002503, allocations: 0 / 1.002 GB, free: 11.58 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0003923/0.002895, allocations: 489.5 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.00293, allocations: 12.75 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.188e-05/0.002972, allocations: 58.73 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.003006, allocations: 36.73 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.003254, allocations: 254.8 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.00329, allocations: 33.02 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.003311, allocations: 28.38 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.003621, allocations: 340.3 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.003629, allocations: 192 / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.003645, allocations: 12.38 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.003652, allocations: 8.125 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002357/0.003887, allocations: 263.7 kB / 1.003 GB, free: 9.992 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007256/0.004613, allocations: 0.8436 MB / 1.004 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.985e-05/0.004673, allocations: 57.92 kB / 1.004 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.084e-05/0.004704, allocations: 33.77 kB / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.004719, allocations: 0 / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.004736, allocations: 34.56 kB / 1.004 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 6.61e-07/0.004737, allocations: 0 / 1.004 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001856/0.004922, allocations: 137.3 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.004954, allocations: 77.11 kB / 1.004 GB, free: 8.711 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.005272, allocations: 485.4 kB / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.417e-06/0.005281, allocations: 25.7 kB / 1.005 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.005368, allocations: 183.8 kB / 1.005 GB, free: 8.012 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.616e-06/0.005377, allocations: 11.94 kB / 1.005 GB, free: 8 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.00542, allocations: 45.7 kB / 1.005 GB, free: 7.949 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.005507, allocations: 339.1 kB / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.005564, allocations: 59.95 kB / 1.005 GB, free: 7.551 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.406e-05/0.005629, allocations: 80.11 kB / 1.005 GB, free: 7.469 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.294e-05/0.005721, allocations: 97.66 kB / 1.005 GB, free: 7.367 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005723, allocations: 0 / 1.005 GB, free: 7.367 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001554/0.005879, allocations: 189.3 kB / 1.006 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.005891, allocations: 13.66 kB / 1.006 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.005895, allocations: 0 / 1.006 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.005906, allocations: 0 / 1.006 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.004e-05/0.005986, allocations: 23.98 kB / 1.006 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.005991, allocations: 4 kB / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.006251, allocations: 31.73 kB / 1.006 GB, free: 7.105 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.006262, allocations: 8 kB / 1.006 GB, free: 7.098 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: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001159/0.006378, allocations: 197.6 kB / 1.006 GB, free: 6.895 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.006409, allocations: 27.81 kB / 1.006 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.00652, allocations: 160.6 kB / 1.006 GB, free: 6.699 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.006557, allocations: 184.2 kB / 1.006 GB, free: 6.512 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-05/0.006594, allocations: 184.3 kB / 1.006 GB, free: 6.324 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/0.006628, allocations: 176.3 kB / 1.007 GB, free: 6.145 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.006829, allocations: 488.2 kB / 1.007 GB, free: 5.617 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/0.006849, allocations: 109 kB / 1.007 GB, free: 5.504 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-05/0.006872, allocations: 104.9 kB / 1.007 GB, free: 5.395 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.738e-05/0.006909, allocations: 184.3 kB / 1.007 GB, free: 5.207 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.006946, allocations: 180.2 kB / 1.008 GB, free: 5.023 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.544e-05/0.006981, allocations: 184.2 kB / 1.008 GB, free: 4.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.423e-05/0.007016, allocations: 180.3 kB / 1.008 GB, free: 4.652 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.145e-05/0.007107, allocations: 327.6 kB / 1.008 GB, free: 4.309 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.007167, allocations: 144.7 kB / 1.008 GB, free: 4.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.007218, allocations: 192.1 kB / 1.009 GB, free: 3.965 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.136e-05/0.007279, allocations: 109 kB / 1.009 GB, free: 3.852 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.007324, allocations: 188.2 kB / 1.009 GB, free: 3.66 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.007348, allocations: 109 kB / 1.009 GB, free: 3.547 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002411/0.007589, allocations: 359.1 kB / 1.009 GB, free: 3.199 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.007589, allocations: 0 / 1.009 GB, free: 3.199 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001678/0.007757, allocations: 35.95 kB / 1.009 GB, free: 3.164 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0002502/0.008007, allocations: 0.8358 MB / 1.01 GB, free: 2.297 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001088/0.008116, allocations: 67.95 kB / 1.01 GB, free: 2.23 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.008118, allocations: 0 / 1.01 GB, free: 2.23 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.974e-06/0.00812, allocations: 3.938 kB / 1.01 GB, free: 2.227 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.008406, allocations: 487.2 kB / 1.011 GB, free: 1.75 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.01039, allocations: 2.828 MB / 1.013 GB, free: 14.83 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.683e-05/0.01049, allocations: 165.8 kB / 1.014 GB, free: 14.64 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 6.054e-05/0.01055, allocations: 58.23 kB / 1.014 GB, free: 14.59 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.635e-05/0.01063, allocations: 72.48 kB / 1.014 GB, free: 14.52 MB / 0.9792 GB Notification: Performance of SimCode: time 5.01e-07/0.01063, allocations: 4 kB / 1.014 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01562/0.02625, allocations: 5.707 MB / 1.019 GB, free: 8.965 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.584/6.61, allocations: 16.61 kB / 1.019 GB, free: 8.953 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_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_LastTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable idxLasTru.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.52227985765785]