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.001693/0.001693, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002283/0.002283, allocations: 220.3 kB / 22.25 MB, free: 5.102 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.809 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.179/3.179, allocations: 0.49 GB / 0.7951 GB, free: 35.53 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.002067/0.002067, allocations: 62 kB / 1.154 GB, free: 25.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3441, allocations: 176.1 MB / 1.326 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001992/0.3461, allocations: 0.7148 MB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002142/0.3464, allocations: 47.84 kB / 1.327 GB, free: 0.75 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.226e-05/0.3464, allocations: 7.938 kB / 1.327 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3466, allocations: 15.86 kB / 1.327 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.3467, allocations: 11.92 kB / 1.327 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.515e-05/0.3467, allocations: 15.98 kB / 1.327 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.347, allocations: 179.6 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.3472, allocations: 145.6 kB / 1.327 GB, free: 388 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.731e-05/0.3473, allocations: 103.7 kB / 1.327 GB, free: 284 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.3475, allocations: 111.5 kB / 1.327 GB, free: 172 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.3475, allocations: 24 kB / 1.327 GB, free: 148 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.909e-05/0.3476, allocations: 28 kB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.771e-05/0.3476, allocations: 67.77 kB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.3478, allocations: 111.4 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.3482, allocations: 370.4 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3482, allocations: 0 / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3482, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3482, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 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.0006771/0.3489, allocations: 497.5 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3489, allocations: 11.97 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.349, allocations: 62.73 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.349, allocations: 32.75 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.3495, allocations: 255.6 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.039e-05/0.3496, allocations: 33.02 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.3496, allocations: 24.38 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.3502, allocations: 336.3 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3502, allocations: 3.938 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.3502, allocations: 15.98 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3502, allocations: 4 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/0.3507, allocations: 271.7 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.3521, allocations: 0.8322 MB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.3522, allocations: 61.12 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.605e-05/0.3523, allocations: 37.7 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.3523, allocations: 4 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.3524, allocations: 30.56 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.3524, allocations: 0 / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003292/0.3527, allocations: 129.4 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.3528, allocations: 77.11 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006053/0.3534, allocations: 489.4 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.3534, allocations: 25.7 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.3536, allocations: 191.8 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.3536, allocations: 4.203 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-05/0.3537, allocations: 53.69 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.3539, allocations: 338.8 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.607e-05/0.354, allocations: 55.95 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3541, allocations: 78.73 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.3542, allocations: 101.6 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3542, allocations: 0 / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003071/0.3545, allocations: 185.3 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3546, allocations: 8 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3546, allocations: 3.938 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3546, allocations: 0 / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.3547, allocations: 23.98 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3547, allocations: 8 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.621e-05/0.3548, allocations: 31.73 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.3548, allocations: 4 kB / 1.332 GB, free: 11.09 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.0002597/0.3551, allocations: 197.5 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.47e-05/0.3552, allocations: 31.75 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.3554, allocations: 160.6 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/0.3555, allocations: 180.2 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.263e-05/0.3556, allocations: 184.3 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-05/0.3557, allocations: 184.1 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.3561, allocations: 488.1 kB / 1.333 GB, free: 9.594 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-05/0.3561, allocations: 109 kB / 1.333 GB, free: 9.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.956e-05/0.3562, allocations: 108.9 kB / 1.333 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.803e-05/0.3563, allocations: 180.3 kB / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.068e-05/0.3564, allocations: 180.2 kB / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.943e-05/0.3564, allocations: 176.3 kB / 1.334 GB, free: 8.82 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.889e-05/0.3565, allocations: 180.3 kB / 1.334 GB, free: 8.637 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.3568, allocations: 343.7 kB / 1.334 GB, free: 8.277 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3569, allocations: 152.7 kB / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.357, allocations: 180.3 kB / 1.335 GB, free: 7.938 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.3572, allocations: 105 kB / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.3573, allocations: 180.2 kB / 1.335 GB, free: 7.645 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.3573, allocations: 113 kB / 1.335 GB, free: 7.527 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004091/0.3577, allocations: 359.1 kB / 1.335 GB, free: 7.18 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3577, allocations: 0 / 1.335 GB, free: 7.18 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002806/0.358, allocations: 31.95 kB / 1.336 GB, free: 7.148 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.0006466/0.3586, allocations: 0.8319 MB / 1.336 GB, free: 6.289 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002163/0.3589, allocations: 79.88 kB / 1.336 GB, free: 6.211 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3589, allocations: 4 kB / 1.336 GB, free: 6.207 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.874e-06/0.3589, allocations: 0 / 1.336 GB, free: 6.207 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.3595, allocations: 478.7 kB / 1.337 GB, free: 5.738 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.3629, allocations: 2.816 MB / 1.34 GB, free: 2.828 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.3631, allocations: 177.6 kB / 1.34 GB, free: 2.637 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001201/0.3632, allocations: 54.25 kB / 1.34 GB, free: 2.578 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3633, allocations: 75.41 kB / 1.34 GB, free: 2.504 MB / 1.029 GB Notification: Performance of SimCode: time 6.51e-07/0.3633, allocations: 0 / 1.34 GB, free: 2.504 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.3965, allocations: 5.61 MB / 1.345 GB, free: 13.05 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.42, allocations: 17.06 kB / 1.345 GB, free: 13.04 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.12364651399548]