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.001733/0.001733, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001742/0.001742, allocations: 212.3 kB / 22.24 MB, free: 4.855 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.447/1.447, allocations: 230.6 MB / 256 MB, free: 7.801 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.255/3.255, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 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.002183/0.002183, allocations: 63.92 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3409, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002058/0.343, allocations: 0.7153 MB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002288/0.3432, allocations: 55.72 kB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.704e-05/0.3433, allocations: 0 / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.3434, allocations: 19.86 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.3435, allocations: 7.922 kB / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.917e-05/0.3435, allocations: 19.98 kB / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.3438, allocations: 175.6 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.344, allocations: 141.4 kB / 1.364 GB, free: 13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.3441, allocations: 107.6 kB / 1.365 GB, free: 12.89 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3443, allocations: 119.4 kB / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.3443, allocations: 28 kB / 1.365 GB, free: 12.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.962e-05/0.3444, allocations: 24 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.8e-05/0.3444, allocations: 71.78 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3446, allocations: 99.39 kB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.3449, allocations: 374.7 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3449, allocations: 4 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3449, allocations: 0 / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.345, allocations: 0 / 1.365 GB, free: 12.18 MB / 1.061 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.0006466/0.3456, allocations: 489.5 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3456, allocations: 12.03 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.3457, allocations: 62.67 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.3458, allocations: 36.7 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.3462, allocations: 251.6 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.438e-05/0.3463, allocations: 29.02 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.3463, allocations: 24.38 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.3469, allocations: 344.2 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3469, allocations: 7.922 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.3469, allocations: 16 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.3469, allocations: 8 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/0.3473, allocations: 259.8 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3486, allocations: 0.8399 MB / 1.368 GB, free: 9.707 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.146e-05/0.3487, allocations: 57.19 kB / 1.368 GB, free: 9.633 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.126e-05/0.3488, allocations: 37.7 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.3488, allocations: 0 / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.3488, allocations: 38.5 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3488, allocations: 0 / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0002818/0.3491, allocations: 125.7 kB / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3492, allocations: 93.03 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.3497, allocations: 481.4 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.3497, allocations: 25.7 kB / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.3499, allocations: 183.8 kB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.3499, allocations: 4 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.35, allocations: 57.58 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.3501, allocations: 338.8 kB / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.817e-05/0.3502, allocations: 55.95 kB / 1.369 GB, free: 8.152 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.3503, allocations: 73.67 kB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.3505, allocations: 97.66 kB / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3505, allocations: 7.938 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002918/0.3508, allocations: 189.4 kB / 1.369 GB, free: 7.773 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3508, allocations: 4 kB / 1.369 GB, free: 7.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3508, allocations: 0 / 1.369 GB, free: 7.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.3508, allocations: 4 kB / 1.369 GB, free: 7.766 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.351, allocations: 27.92 kB / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.351, allocations: 0 / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.771e-05/0.3511, allocations: 35.67 kB / 1.369 GB, free: 7.703 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.3511, allocations: 4 kB / 1.369 GB, free: 7.699 MB / 1.061 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.00021/0.3513, allocations: 193.8 kB / 1.37 GB, free: 7.5 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.834e-05/0.3514, allocations: 27.8 kB / 1.37 GB, free: 7.473 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.3516, allocations: 164.5 kB / 1.37 GB, free: 7.301 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.663e-05/0.3516, allocations: 180.3 kB / 1.37 GB, free: 7.117 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.543e-05/0.3517, allocations: 184.2 kB / 1.37 GB, free: 6.93 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-05/0.3518, allocations: 177.3 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.3522, allocations: 484.1 kB / 1.371 GB, free: 6.227 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.497e-05/0.3522, allocations: 108.9 kB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.3523, allocations: 109 kB / 1.371 GB, free: 6 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-05/0.3524, allocations: 184.2 kB / 1.371 GB, free: 5.812 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.781e-05/0.3525, allocations: 180.3 kB / 1.371 GB, free: 5.629 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.876e-05/0.3525, allocations: 184.2 kB / 1.371 GB, free: 5.441 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-05/0.3526, allocations: 180.2 kB / 1.372 GB, free: 5.258 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.3528, allocations: 339.7 kB / 1.372 GB, free: 4.902 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.3529, allocations: 144.8 kB / 1.372 GB, free: 4.754 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.353, allocations: 188.1 kB / 1.372 GB, free: 4.562 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.3532, allocations: 101 kB / 1.372 GB, free: 4.457 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.3533, allocations: 184.2 kB / 1.373 GB, free: 4.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.822e-05/0.3533, allocations: 104.9 kB / 1.373 GB, free: 4.16 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004168/0.3537, allocations: 363.1 kB / 1.373 GB, free: 3.805 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3537, allocations: 4 kB / 1.373 GB, free: 3.801 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000261/0.354, allocations: 31.95 kB / 1.373 GB, free: 3.77 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.0004959/0.3545, allocations: 0.8281 MB / 1.374 GB, free: 2.914 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001723/0.3546, allocations: 79.88 kB / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3547, allocations: 0 / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.392e-06/0.3547, allocations: 0 / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.3551, allocations: 486.2 kB / 1.374 GB, free: 2.359 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.3583, allocations: 2.808 MB / 1.377 GB, free: 15.45 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.3585, allocations: 173.6 kB / 1.377 GB, free: 15.27 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001173/0.3586, allocations: 54.25 kB / 1.377 GB, free: 15.21 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3587, allocations: 75.41 kB / 1.377 GB, free: 15.14 MB / 1.076 GB Notification: Performance of SimCode: time 5.41e-07/0.3587, allocations: 0 / 1.377 GB, free: 15.14 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03317/0.3919, allocations: 5.59 MB / 1.383 GB, free: 9.707 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.63, allocations: 10.64 kB / 1.383 GB, free: 9.699 MB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.48438208224252]