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.001618/0.001618, allocations: 114.3 kB / 18.94 MB, free: 2.789 MB / 14.72 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.001809/0.001809, allocations: 216.6 kB / 22.26 MB, free: 5.207 MB / 14.72 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 1.504/1.504, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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 3.322/3.322, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 66.94 kB / 1.177 GB, free: 17.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.346, allocations: 180.2 MB / 1.353 GB, free: 8.473 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001966/0.348, allocations: 0.7311 MB / 1.354 GB, free: 7.742 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002124/0.3482, allocations: 47.84 kB / 1.354 GB, free: 7.695 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.678e-05/0.3483, allocations: 0 / 1.354 GB, free: 7.695 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.3484, allocations: 15.86 kB / 1.354 GB, free: 7.68 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.3485, allocations: 15.92 kB / 1.354 GB, free: 7.664 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 4.925e-05/0.3486, allocations: 15.98 kB / 1.354 GB, free: 7.648 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.3488, allocations: 187.5 kB / 1.354 GB, free: 7.465 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.3491, allocations: 149.6 kB / 1.354 GB, free: 7.316 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.3492, allocations: 103.6 kB / 1.354 GB, free: 7.215 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.3493, allocations: 111.5 kB / 1.354 GB, free: 7.105 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.3494, allocations: 24 kB / 1.354 GB, free: 7.082 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.823e-05/0.3494, allocations: 28 kB / 1.354 GB, free: 7.055 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.838e-05/0.3495, allocations: 67.78 kB / 1.354 GB, free: 6.988 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.3496, allocations: 127.2 kB / 1.354 GB, free: 6.863 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.35, allocations: 378.4 kB / 1.355 GB, free: 6.492 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.35, allocations: 0 / 1.355 GB, free: 6.492 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.323e-06/0.35, allocations: 0 / 1.355 GB, free: 6.492 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.35, allocations: 0 / 1.355 GB, free: 6.492 MB / 1.045 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.0006947/0.3507, allocations: 493.5 kB / 1.355 GB, free: 5.977 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3508, allocations: 15.97 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.914e-05/0.3508, allocations: 62.67 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.273e-05/0.3509, allocations: 40.69 kB / 1.355 GB, free: 5.852 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.3513, allocations: 239.7 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.414e-05/0.3514, allocations: 33.02 kB / 1.356 GB, free: 5.559 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.3514, allocations: 28.31 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005378/0.3519, allocations: 344.3 kB / 1.356 GB, free: 5.18 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.352, allocations: 3.938 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.352, allocations: 12 kB / 1.356 GB, free: 5.164 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.352, allocations: 4 kB / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.3524, allocations: 263.8 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.3537, allocations: 0.879 MB / 1.357 GB, free: 3.977 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.25e-05/0.3538, allocations: 61.19 kB / 1.357 GB, free: 3.898 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.609e-05/0.3538, allocations: 37.64 kB / 1.357 GB, free: 3.855 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.3538, allocations: 4 kB / 1.357 GB, free: 3.852 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.3539, allocations: 30.56 kB / 1.357 GB, free: 3.812 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3539, allocations: 0 / 1.357 GB, free: 3.812 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0002815/0.3541, allocations: 137.4 kB / 1.357 GB, free: 3.672 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.3542, allocations: 81.09 kB / 1.357 GB, free: 3.574 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.3548, allocations: 477.4 kB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3548, allocations: 29.7 kB / 1.358 GB, free: 3.066 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3549, allocations: 179.8 kB / 1.358 GB, free: 2.887 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.275e-05/0.355, allocations: 11.88 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.355, allocations: 49.69 kB / 1.358 GB, free: 2.82 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3552, allocations: 343.1 kB / 1.358 GB, free: 2.477 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.419e-05/0.3553, allocations: 59.95 kB / 1.359 GB, free: 2.418 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.3554, allocations: 72.55 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.3556, allocations: 105.6 kB / 1.359 GB, free: 2.234 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3556, allocations: 0 / 1.359 GB, free: 2.234 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002722/0.3558, allocations: 185.3 kB / 1.359 GB, free: 2.047 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.3558, allocations: 8 kB / 1.359 GB, free: 2.039 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3559, allocations: 0 / 1.359 GB, free: 2.039 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3559, allocations: 0 / 1.359 GB, free: 2.039 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.356, allocations: 31.98 kB / 1.359 GB, free: 2.008 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.356, allocations: 4 kB / 1.359 GB, free: 2.004 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.619e-05/0.3561, allocations: 27.73 kB / 1.359 GB, free: 1.977 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.3561, allocations: 4 kB / 1.359 GB, free: 1.973 MB / 1.045 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.0001987/0.3563, allocations: 198.1 kB / 1.359 GB, free: 1.77 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.555e-05/0.3564, allocations: 31.75 kB / 1.359 GB, free: 1.738 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.3565, allocations: 164.6 kB / 1.359 GB, free: 1.562 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.347e-05/0.3566, allocations: 180.2 kB / 1.36 GB, free: 1.379 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.801e-05/0.3567, allocations: 176.3 kB / 1.36 GB, free: 1.199 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.742e-05/0.3568, allocations: 180.2 kB / 1.36 GB, free: 1.016 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.3572, allocations: 0.4961 MB / 1.36 GB, free: 480 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.223e-05/0.3572, allocations: 109 kB / 1.36 GB, free: 364 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-05/0.3573, allocations: 112.9 kB / 1.361 GB, free: 244 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.3573, allocations: 180.3 kB / 1.361 GB, free: 56 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.3574, allocations: 180.8 kB / 1.361 GB, free: 15.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.357e-05/0.3575, allocations: 184.2 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.374e-05/0.3576, allocations: 184.2 kB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001909/0.3578, allocations: 331.7 kB / 1.362 GB, free: 15.15 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.3579, allocations: 144.8 kB / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.358, allocations: 192.2 kB / 1.362 GB, free: 14.8 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.3582, allocations: 101 kB / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.3583, allocations: 192.2 kB / 1.362 GB, free: 14.5 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/0.3583, allocations: 101 kB / 1.362 GB, free: 14.4 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004155/0.3587, allocations: 359.1 kB / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3587, allocations: 0 / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002727/0.359, allocations: 39.89 kB / 1.363 GB, free: 14.01 MB / 1.061 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.0005397/0.3595, allocations: 0.8358 MB / 1.363 GB, free: 13.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001671/0.3597, allocations: 67.94 kB / 1.364 GB, free: 13.08 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3597, allocations: 0 / 1.364 GB, free: 13.08 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.367e-06/0.3597, allocations: 7.938 kB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004941/0.3602, allocations: 478.7 kB / 1.364 GB, free: 12.6 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.3635, allocations: 2.812 MB / 1.367 GB, free: 9.699 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.3639, allocations: 0.779 MB / 1.367 GB, free: 8.895 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001043/0.364, allocations: 54.25 kB / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.3641, allocations: 79.41 kB / 1.368 GB, free: 8.766 MB / 1.061 GB Notification: Performance of SimCode: time 5.11e-07/0.3641, allocations: 0 / 1.368 GB, free: 8.766 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.3963, allocations: 5.116 MB / 1.373 GB, free: 3.797 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.31, allocations: 4.062 kB / 1.373 GB, free: 3.793 MB / 1.061 GB " [Timeout remaining time 289] (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/jenkins1/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: 18.31998480600032]