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.001555/0.001555, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.001639/0.001639, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.429/1.429, allocations: 230.6 MB / 253.5 MB, free: 15.12 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 2.845/2.845, allocations: 0.5003 GB / 0.8026 GB, free: 6.898 MB / 0.6387 GB " [Timeout remaining time 177] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",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.001966/0.001966, allocations: 67.89 kB / 1.165 GB, free: 0.5508 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.905/0.9069, allocations: 178.9 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001785/0.9087, allocations: 0.7185 MB / 1.341 GB, free: 15.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001851/0.9089, allocations: 43.23 kB / 1.341 GB, free: 15.79 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.853e-05/0.909, allocations: 3.094 kB / 1.341 GB, free: 15.79 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.9091, allocations: 20.91 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.9092, allocations: 9.016 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 4.968e-05/0.9093, allocations: 14.97 kB / 1.341 GB, free: 15.76 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.9095, allocations: 187.1 kB / 1.341 GB, free: 15.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.9098, allocations: 206.6 kB / 1.341 GB, free: 15.6 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.973e-05/0.9099, allocations: 102 kB / 1.341 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.91, allocations: 117 kB / 1.342 GB, free: 15.48 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.719e-05/0.9101, allocations: 24.56 kB / 1.342 GB, free: 15.48 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.926e-05/0.9101, allocations: 25.56 kB / 1.342 GB, free: 15.48 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.435e-05/0.9102, allocations: 71.31 kB / 1.342 GB, free: 15.44 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.9103, allocations: 123 kB / 1.342 GB, free: 15.35 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.9107, allocations: 377.1 kB / 1.342 GB, free: 15.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.9107, allocations: 1.438 kB / 1.342 GB, free: 15.21 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.994e-06/0.9107, allocations: 0 / 1.342 GB, free: 15.21 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.9108, allocations: 0 / 1.342 GB, free: 15.21 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.0005981/0.9114, allocations: 0.5622 MB / 1.343 GB, free: 14.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.9114, allocations: 10.22 kB / 1.343 GB, free: 14.7 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.375e-05/0.9114, allocations: 6.594 kB / 1.343 GB, free: 14.7 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.9115, allocations: 63.7 kB / 1.343 GB, free: 14.65 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.9115, allocations: 35.95 kB / 1.343 GB, free: 14.63 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.9119, allocations: 319.7 kB / 1.343 GB, free: 14.36 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.9119, allocations: 33.67 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.912, allocations: 24.88 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000495/0.9125, allocations: 345.7 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.9125, allocations: 0 / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.9125, allocations: 9.594 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.9125, allocations: 7.312 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.9129, allocations: 264.1 kB / 1.344 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.9139, allocations: 0.909 MB / 1.345 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.199e-05/0.914, allocations: 58.94 kB / 1.345 GB, free: 13.46 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.699e-05/0.914, allocations: 33.59 kB / 1.345 GB, free: 13.44 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.914, allocations: 0.7969 kB / 1.345 GB, free: 13.44 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.914, allocations: 35.94 kB / 1.345 GB, free: 13.4 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.914, allocations: 0 / 1.345 GB, free: 13.4 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0002348/0.9143, allocations: 133.7 kB / 1.345 GB, free: 13.32 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.9143, allocations: 77.91 kB / 1.345 GB, free: 13.23 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/0.9148, allocations: 483.5 kB / 1.345 GB, free: 13.02 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.556e-06/0.9148, allocations: 25.7 kB / 1.345 GB, free: 12.99 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.9149, allocations: 184.4 kB / 1.346 GB, free: 12.83 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.988e-06/0.9149, allocations: 10.16 kB / 1.346 GB, free: 12.82 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.915, allocations: 45.39 kB / 1.346 GB, free: 12.8 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.383e-05/0.915, allocations: 344.3 kB / 1.346 GB, free: 12.47 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.9151, allocations: 63.14 kB / 1.346 GB, free: 12.45 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.785e-05/0.9152, allocations: 75.75 kB / 1.346 GB, free: 12.41 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.9153, allocations: 100.2 kB / 1.346 GB, free: 12.36 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.9153, allocations: 1.406 kB / 1.346 GB, free: 12.36 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002308/0.9156, allocations: 190.1 kB / 1.346 GB, free: 12.26 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.9156, allocations: 5.109 kB / 1.346 GB, free: 12.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.9156, allocations: 1.656 kB / 1.346 GB, free: 12.26 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.9156, allocations: 7.984 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.9157, allocations: 23.89 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.9157, allocations: 2.109 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.19e-05/0.9158, allocations: 28.77 kB / 1.346 GB, free: 12.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.9158, allocations: 8.516 kB / 1.346 GB, free: 12.23 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.0001472/0.916, allocations: 196.3 kB / 1.347 GB, free: 12.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.916, allocations: 28.16 kB / 1.347 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.9162, allocations: 161.9 kB / 1.347 GB, free: 11.92 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.9162, allocations: 186.4 kB / 1.347 GB, free: 11.73 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.358e-05/0.9162, allocations: 176.9 kB / 1.347 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/0.9162, allocations: 182.2 kB / 1.347 GB, free: 11.37 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.9165, allocations: 0.5226 MB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.9165, allocations: 103.1 kB / 1.348 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.437e-05/0.9165, allocations: 110.1 kB / 1.348 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.159e-05/0.9165, allocations: 178.2 kB / 1.348 GB, free: 10.48 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.9166, allocations: 182.4 kB / 1.348 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.217e-05/0.9166, allocations: 182.3 kB / 1.349 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.328e-05/0.9166, allocations: 181 kB / 1.349 GB, free: 9.934 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.756e-05/0.9167, allocations: 340.2 kB / 1.349 GB, free: 9.594 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.002e-05/0.9168, allocations: 216.8 kB / 1.349 GB, free: 9.375 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.9168, allocations: 186.1 kB / 1.349 GB, free: 9.188 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.9169, allocations: 104.8 kB / 1.35 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.9169, allocations: 186.3 kB / 1.35 GB, free: 8.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.9169, allocations: 106.8 kB / 1.35 GB, free: 8.785 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003513/0.9173, allocations: 362.9 kB / 1.35 GB, free: 8.625 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9173, allocations: 0 / 1.35 GB, free: 8.625 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002531/0.9176, allocations: 34.81 kB / 1.35 GB, free: 8.617 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.0002412/0.9178, allocations: 0.841 MB / 1.351 GB, free: 7.785 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000158/0.918, allocations: 71.31 kB / 1.351 GB, free: 7.766 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.918, allocations: 0 / 1.351 GB, free: 7.766 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.918, allocations: 5.031 kB / 1.351 GB, free: 7.762 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.9183, allocations: 483.2 kB / 1.352 GB, free: 7.297 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.9207, allocations: 2.814 MB / 1.354 GB, free: 5.484 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.9209, allocations: 0.7758 MB / 1.355 GB, free: 4.773 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001025/0.921, allocations: 53.62 kB / 1.355 GB, free: 4.773 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.192e-05/0.9211, allocations: 78.22 kB / 1.355 GB, free: 4.719 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.9211, allocations: 0 / 1.355 GB, free: 4.719 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.9432, allocations: 5.006 MB / 1.36 GB, free: 4.094 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.949, allocations: 12.67 kB / 1.36 GB, free: 4.086 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.089485195989255]