Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 105.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.716/2.716, allocations: 476.7 MB / 0.7611 GB, free: 15.73 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 71.89 kB / 1.104 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9144/0.9164, allocations: 168.7 MB / 1.269 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002634/0.919, allocations: 0.7312 MB / 1.269 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002755/0.9193, allocations: 47.77 kB / 1.269 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.989e-05/0.9194, allocations: 6.188 kB / 1.269 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.9196, allocations: 17.61 kB / 1.269 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.9197, allocations: 8.656 kB / 1.27 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 8.107e-05/0.9198, allocations: 15.94 kB / 1.27 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.9201, allocations: 186.7 kB / 1.27 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004981/0.9206, allocations: 209.7 kB / 1.27 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.9208, allocations: 95.34 kB / 1.27 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.921, allocations: 117.8 kB / 1.27 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.816e-05/0.9211, allocations: 24.53 kB / 1.27 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.09e-05/0.9211, allocations: 24.62 kB / 1.27 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.693e-05/0.9212, allocations: 71.31 kB / 1.27 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.9214, allocations: 119.8 kB / 1.27 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.922, allocations: 377.9 kB / 1.271 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.922, allocations: 0 / 1.271 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.423e-06/0.922, allocations: 0.875 kB / 1.271 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.474e-05/0.922, allocations: 4 kB / 1.271 GB, free: 6.688 MB / 0.9981 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.0009406/0.9229, allocations: 0.5547 MB / 1.271 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.923, allocations: 9.812 kB / 1.271 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.141e-05/0.9231, allocations: 62.56 kB / 1.271 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.9231, allocations: 36.7 kB / 1.271 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.9237, allocations: 318.9 kB / 1.272 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.9238, allocations: 30.17 kB / 1.272 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.9238, allocations: 24.97 kB / 1.272 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007651/0.9246, allocations: 344.4 kB / 1.272 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.9246, allocations: 4.875 kB / 1.272 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.9246, allocations: 10.38 kB / 1.272 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.9246, allocations: 6.719 kB / 1.272 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005743/0.9252, allocations: 265.7 kB / 1.272 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.9268, allocations: 0.9171 MB / 1.273 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.27e-05/0.9269, allocations: 57 kB / 1.273 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.804e-05/0.9269, allocations: 38.84 kB / 1.273 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.9269, allocations: 0.5312 kB / 1.273 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.927, allocations: 35.97 kB / 1.273 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.663e-06/0.927, allocations: 7.938 kB / 1.273 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0003541/0.9273, allocations: 129.6 kB / 1.273 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.9274, allocations: 77.8 kB / 1.274 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.9281, allocations: 479.8 kB / 1.274 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.9281, allocations: 25.7 kB / 1.274 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.9282, allocations: 182.6 kB / 1.274 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.9282, allocations: 4.984 kB / 1.274 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.9283, allocations: 46.77 kB / 1.274 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.638e-05/0.9284, allocations: 349.7 kB / 1.275 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.9285, allocations: 59.81 kB / 1.275 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.9287, allocations: 74.28 kB / 1.275 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.9289, allocations: 92.53 kB / 1.275 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.9289, allocations: 0.7812 kB / 1.275 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003631/0.9292, allocations: 193 kB / 1.275 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.9292, allocations: 4.625 kB / 1.275 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.9292, allocations: 4.969 kB / 1.275 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.9293, allocations: 0.7188 kB / 1.275 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.9295, allocations: 23.11 kB / 1.275 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.9295, allocations: 0.8125 kB / 1.275 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.9296, allocations: 32.89 kB / 1.275 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.9296, allocations: 9.188 kB / 1.275 GB, free: 3.711 MB / 0.9981 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.0002222/0.9298, allocations: 197.7 kB / 1.275 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.9299, allocations: 37.34 kB / 1.275 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.9301, allocations: 158.2 kB / 1.275 GB, free: 3.406 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/0.9302, allocations: 177.9 kB / 1.276 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-05/0.9302, allocations: 178.3 kB / 1.276 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.9302, allocations: 182.2 kB / 1.276 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.9306, allocations: 0.5234 MB / 1.276 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/0.9306, allocations: 105.7 kB / 1.277 GB, free: 2.266 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.589e-05/0.9306, allocations: 104.5 kB / 1.277 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.329e-05/0.9306, allocations: 177.9 kB / 1.277 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.9307, allocations: 181 kB / 1.277 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001853/0.9309, allocations: 181.1 kB / 1.277 GB, free: 17.61 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.897e-05/0.931, allocations: 186.9 kB / 1.277 GB, free: 17.43 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.9312, allocations: 335.8 kB / 1.278 GB, free: 17.09 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002128/0.9314, allocations: 216.3 kB / 1.278 GB, free: 16.87 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.9315, allocations: 186.6 kB / 1.278 GB, free: 16.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.9317, allocations: 112.3 kB / 1.278 GB, free: 16.57 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.9319, allocations: 183.5 kB / 1.278 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-05/0.9319, allocations: 106.1 kB / 1.278 GB, free: 16.28 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005759/0.9325, allocations: 357.9 kB / 1.279 GB, free: 16.12 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9325, allocations: 3.938 kB / 1.279 GB, free: 16.11 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004662/0.933, allocations: 38.88 kB / 1.279 GB, free: 16.1 MB / 1.014 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.0006071/0.9336, allocations: 0.8407 MB / 1.28 GB, free: 15.27 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.9338, allocations: 85.03 kB / 1.28 GB, free: 15.24 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.9338, allocations: 0 / 1.28 GB, free: 15.24 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 2.425e-06/0.9338, allocations: 1 kB / 1.28 GB, free: 15.24 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008274/0.9346, allocations: 483.1 kB / 1.28 GB, free: 14.78 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.939, allocations: 2.82 MB / 1.283 GB, free: 12.96 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.9396, allocations: 0.7708 MB / 1.284 GB, free: 12.25 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001657/0.9398, allocations: 54.56 kB / 1.284 GB, free: 12.25 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.94, allocations: 82.45 kB / 1.284 GB, free: 12.19 MB / 1.014 GB Notification: Performance of SimCode: time 5.31e-07/0.94, allocations: 0 / 1.284 GB, free: 12.19 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03817/0.9781, allocations: 4.962 MB / 1.289 GB, free: 11.58 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.538/9.517, allocations: 11.41 kB / 1.289 GB, free: 11.57 MB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.698967929929495]