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.00141/0.00141, allocations: 111.9 kB / 17.54 MB, free: 4.641 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.001393/0.001393, allocations: 189.9 kB / 20.71 MB, free: 1.484 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.28/1.28, allocations: 225.6 MB / 249.3 MB, free: 3.184 MB / 190.1 MB " [Timeout remaining time 179] 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.444/2.444, allocations: 476.7 MB / 0.7628 GB, free: 15.31 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.001796/0.001796, allocations: 75.88 kB / 1.107 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7451/0.7469, allocations: 168.7 MB / 1.271 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001638/0.7486, allocations: 0.7331 MB / 1.272 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001803/0.7487, allocations: 43.94 kB / 1.272 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.7488, allocations: 2.281 kB / 1.272 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.7489, allocations: 16.86 kB / 1.272 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.749, allocations: 13.53 kB / 1.272 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.572e-05/0.7491, allocations: 15.31 kB / 1.272 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.7493, allocations: 181.6 kB / 1.272 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.7495, allocations: 153.1 kB / 1.272 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.41e-05/0.7496, allocations: 102.9 kB / 1.273 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.7497, allocations: 112.7 kB / 1.273 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.7498, allocations: 24.69 kB / 1.273 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.101e-05/0.7498, allocations: 29.5 kB / 1.273 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.7499, allocations: 71.05 kB / 1.273 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.135e-05/0.75, allocations: 119.5 kB / 1.273 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.7503, allocations: 377.6 kB / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.7503, allocations: 0 / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7503, allocations: 0 / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.7503, allocations: 4.812 kB / 1.273 GB, free: 6.652 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.0004758/0.7507, allocations: 0.5512 MB / 1.274 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.7508, allocations: 9.25 kB / 1.274 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.032e-05/0.7508, allocations: 62.69 kB / 1.274 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.7509, allocations: 41.66 kB / 1.274 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.7512, allocations: 314.2 kB / 1.274 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.7512, allocations: 30.28 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.7512, allocations: 27.23 kB / 1.274 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.7517, allocations: 342.6 kB / 1.275 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.7517, allocations: 4.844 kB / 1.275 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.7517, allocations: 9.938 kB / 1.275 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.7517, allocations: 10.47 kB / 1.275 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.7521, allocations: 257.9 kB / 1.275 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000919/0.753, allocations: 0.908 MB / 1.276 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.088e-05/0.7531, allocations: 55.33 kB / 1.276 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.67e-05/0.7531, allocations: 40.77 kB / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.7531, allocations: 3.109 kB / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.024e-05/0.7531, allocations: 39.31 kB / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.7531, allocations: 0 / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002235/0.7534, allocations: 133.4 kB / 1.276 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.045e-05/0.7534, allocations: 77.77 kB / 1.276 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.7538, allocations: 484.9 kB / 1.277 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.104e-06/0.7538, allocations: 25.7 kB / 1.277 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.7539, allocations: 185.5 kB / 1.277 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.844e-06/0.7539, allocations: 5.516 kB / 1.277 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-05/0.754, allocations: 47.86 kB / 1.277 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.754, allocations: 341 kB / 1.277 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-05/0.7541, allocations: 58.83 kB / 1.277 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.959e-05/0.7542, allocations: 69.89 kB / 1.277 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.7543, allocations: 106 kB / 1.277 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.7543, allocations: 0 / 1.277 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002209/0.7545, allocations: 186.8 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.7545, allocations: 5.656 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.7545, allocations: 0 / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.7546, allocations: 2.156 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.7547, allocations: 32.22 kB / 1.278 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.7547, allocations: 0.7812 kB / 1.278 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.859e-05/0.7547, allocations: 28.92 kB / 1.278 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.7547, allocations: 8.531 kB / 1.278 GB, free: 3.688 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.0001317/0.7549, allocations: 197.7 kB / 1.278 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.7549, allocations: 36.05 kB / 1.278 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.7551, allocations: 161.4 kB / 1.278 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.7551, allocations: 177.3 kB / 1.278 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.897e-05/0.7551, allocations: 189 kB / 1.278 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7551, allocations: 178.1 kB / 1.279 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.7553, allocations: 0.5233 MB / 1.279 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.7553, allocations: 101.9 kB / 1.279 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.12e-05/0.7553, allocations: 103.5 kB / 1.279 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.946e-05/0.7554, allocations: 185 kB / 1.279 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.7554, allocations: 178.5 kB / 1.28 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.901e-05/0.7554, allocations: 185 kB / 1.28 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.391e-05/0.7555, allocations: 183.8 kB / 1.28 GB, free: 17.39 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.7557, allocations: 334.9 kB / 1.28 GB, free: 17.06 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.7558, allocations: 216 kB / 1.28 GB, free: 16.84 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.583e-05/0.7559, allocations: 186.7 kB / 1.281 GB, free: 16.65 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.756, allocations: 104.8 kB / 1.281 GB, free: 16.55 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.7561, allocations: 181.9 kB / 1.281 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.7561, allocations: 106.6 kB / 1.281 GB, free: 16.25 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003716/0.7565, allocations: 362.7 kB / 1.281 GB, free: 16.09 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7565, allocations: 0.8438 kB / 1.281 GB, free: 16.09 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002465/0.7567, allocations: 38.58 kB / 1.281 GB, free: 16.08 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.0004221/0.7571, allocations: 0.8421 MB / 1.282 GB, free: 15.25 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001494/0.7573, allocations: 75.7 kB / 1.282 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7573, allocations: 0 / 1.282 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 2.114e-06/0.7573, allocations: 4.844 kB / 1.282 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.7577, allocations: 480.5 kB / 1.283 GB, free: 14.76 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.7604, allocations: 2.818 MB / 1.286 GB, free: 12.94 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.7608, allocations: 0.7655 MB / 1.286 GB, free: 12.24 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.645e-05/0.7609, allocations: 60.23 kB / 1.286 GB, free: 12.23 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.806e-05/0.7609, allocations: 77.86 kB / 1.286 GB, free: 12.17 MB / 1.014 GB Notification: Performance of SimCode: time 4.21e-07/0.7609, allocations: 0 / 1.286 GB, free: 12.17 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.7881, allocations: 4.949 MB / 1.291 GB, free: 11.54 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.929, allocations: 2.938 kB / 1.291 GB, free: 11.54 MB / 1.014 GB " [Timeout remaining time 292] (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 --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/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: 13.105599553999127]