Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001763/0.001763, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.002021/0.002021, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.62/1.62, allocations: 230.6 MB / 252.8 MB, free: 9.129 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.199/3.199, allocations: 0.49 GB / 0.7916 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_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.002118/0.002118, allocations: 68.17 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.346, allocations: 176.1 MB / 1.321 GB, free: 3.332 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002302/0.3483, allocations: 0.7261 MB / 1.322 GB, free: 2.609 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000242/0.3486, allocations: 51.84 kB / 1.322 GB, free: 2.559 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.507e-05/0.3487, allocations: 0 / 1.322 GB, free: 2.559 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.3488, allocations: 11.86 kB / 1.322 GB, free: 2.547 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.3489, allocations: 15.92 kB / 1.322 GB, free: 2.531 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.807e-05/0.349, allocations: 15.98 kB / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002558/0.3492, allocations: 187.5 kB / 1.322 GB, free: 2.332 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.3495, allocations: 205.2 kB / 1.322 GB, free: 2.125 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.3497, allocations: 99.66 kB / 1.322 GB, free: 2.027 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.3498, allocations: 119.5 kB / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.846e-05/0.3498, allocations: 24 kB / 1.322 GB, free: 1.887 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.77e-05/0.3499, allocations: 24 kB / 1.322 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.35, allocations: 67.78 kB / 1.322 GB, free: 1.797 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.3501, allocations: 131.2 kB / 1.322 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003738/0.3505, allocations: 378.4 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3505, allocations: 0 / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3505, allocations: 4 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.3505, allocations: 0 / 1.323 GB, free: 1.293 MB / 1.014 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.0007134/0.3512, allocations: 0.5571 MB / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3512, allocations: 15.98 kB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.174e-05/0.3513, allocations: 58.73 kB / 1.323 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.566e-05/0.3514, allocations: 32.75 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.3518, allocations: 317.2 kB / 1.324 GB, free: 224 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.313e-05/0.3518, allocations: 32.92 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.3518, allocations: 28.38 kB / 1.324 GB, free: 160 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.3524, allocations: 339 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3524, allocations: 3.938 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.3524, allocations: 8 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.3524, allocations: 8 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.3528, allocations: 267.7 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.3541, allocations: 0.9057 MB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.87e-05/0.3542, allocations: 57.19 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.476e-05/0.3542, allocations: 41.64 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3542, allocations: 0 / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.3543, allocations: 30.56 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.3543, allocations: 4 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002891/0.3545, allocations: 133.4 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.3546, allocations: 77.11 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.3552, allocations: 477.5 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.3552, allocations: 25.7 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.3553, allocations: 187.8 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.3553, allocations: 4 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.711e-05/0.3554, allocations: 53.89 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3556, allocations: 338.8 kB / 1.327 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/0.3557, allocations: 55.95 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.3558, allocations: 73.67 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.3559, allocations: 105.6 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3559, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003185/0.3562, allocations: 185.4 kB / 1.327 GB, free: 12.65 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3563, allocations: 7.938 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3563, allocations: 4 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3563, allocations: 4 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.3564, allocations: 27.98 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3564, allocations: 160 / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.037e-05/0.3565, allocations: 27.73 kB / 1.327 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.3565, allocations: 4 kB / 1.327 GB, free: 12.57 MB / 1.029 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.000211/0.3567, allocations: 193.7 kB / 1.327 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.3568, allocations: 35.73 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.357, allocations: 164.7 kB / 1.327 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.53e-05/0.3571, allocations: 180.2 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.22e-05/0.3572, allocations: 176.3 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-05/0.3573, allocations: 180.3 kB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004209/0.3577, allocations: 0.5283 MB / 1.329 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.619e-05/0.3578, allocations: 108.9 kB / 1.329 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.475e-05/0.3578, allocations: 108.9 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.972e-05/0.3579, allocations: 176.3 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.801e-05/0.358, allocations: 176.3 kB / 1.329 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.87e-05/0.3581, allocations: 192.1 kB / 1.329 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.633e-05/0.3582, allocations: 188.3 kB / 1.329 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.3584, allocations: 331.7 kB / 1.33 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.3585, allocations: 217.9 kB / 1.33 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.3587, allocations: 184.2 kB / 1.33 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.3588, allocations: 109 kB / 1.33 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3589, allocations: 188.2 kB / 1.33 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.948e-05/0.3589, allocations: 105 kB / 1.33 GB, free: 8.875 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004331/0.3594, allocations: 359.1 kB / 1.331 GB, free: 8.527 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3594, allocations: 0 / 1.331 GB, free: 8.527 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002835/0.3597, allocations: 31.95 kB / 1.331 GB, free: 8.496 MB / 1.029 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.0005824/0.3602, allocations: 0.8397 MB / 1.332 GB, free: 7.629 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002008/0.3604, allocations: 75.92 kB / 1.332 GB, free: 7.555 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3604, allocations: 0 / 1.332 GB, free: 7.555 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.628e-06/0.3605, allocations: 3.938 kB / 1.332 GB, free: 7.551 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.361, allocations: 477.2 kB / 1.332 GB, free: 7.082 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.3642, allocations: 2.827 MB / 1.335 GB, free: 4.168 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.3647, allocations: 0.7751 MB / 1.336 GB, free: 3.363 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.3648, allocations: 54.25 kB / 1.336 GB, free: 3.312 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.3649, allocations: 79.41 kB / 1.336 GB, free: 3.234 MB / 1.029 GB Notification: Performance of SimCode: time 9.21e-07/0.3649, allocations: 0 / 1.336 GB, free: 3.234 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.3944, allocations: 4.969 MB / 1.341 GB, free: 14.43 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/8.642, allocations: 8.875 kB / 1.341 GB, free: 14.42 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.443747641984373]