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.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.0008506/0.0008506, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008922/0.0008922, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9021/0.9021, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.607/1.607, allocations: 359 MB / 0.6037 GB, free: 11.12 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 2.815e-06/2.815e-06, allocations: 0 / 0.9505 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.856e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001937/0.001965, allocations: 0.7141 MB / 0.9512 GB, free: 2.805 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002267/0.002192, allocations: 47.84 kB / 0.9512 GB, free: 2.758 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.69e-05/0.002269, allocations: 7.938 kB / 0.9512 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.002392, allocations: 7.922 kB / 0.9512 GB, free: 2.742 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.002532, allocations: 15.91 kB / 0.9513 GB, free: 2.727 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 6.477e-05/0.002597, allocations: 15.98 kB / 0.9513 GB, free: 2.711 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.000228/0.002825, allocations: 187.5 kB / 0.9514 GB, free: 2.527 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.003083, allocations: 149.3 kB / 0.9516 GB, free: 2.383 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.003214, allocations: 143.7 kB / 0.9517 GB, free: 2.242 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.003347, allocations: 103.7 kB / 0.9518 GB, free: 2.141 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 4.952e-05/0.003397, allocations: 24 kB / 0.9518 GB, free: 2.117 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 3.621e-05/0.003433, allocations: 28 kB / 0.9519 GB, free: 2.09 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.808e-05/0.003501, allocations: 63.77 kB / 0.9519 GB, free: 2.027 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 8.204e-05/0.003583, allocations: 83.75 kB / 0.952 GB, free: 1.945 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.003924, allocations: 370.8 kB / 0.9524 GB, free: 1.582 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.003928, allocations: 4 kB / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.363e-06/0.003929, allocations: 0 / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.003936, allocations: 4 kB / 0.9524 GB, free: 1.574 MB / 0.9011 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.0006443/0.00458, allocations: 493.4 kB / 0.9528 GB, free: 1.055 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.004625, allocations: 8.031 kB / 0.9529 GB, free: 1.047 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.915e-05/0.004694, allocations: 62.73 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.573e-05/0.00475, allocations: 36.7 kB / 0.9529 GB, free: 0.9414 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.005137, allocations: 254.8 kB / 0.9532 GB, free: 0.6641 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.005187, allocations: 33.02 kB / 0.9532 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.005228, allocations: 24.38 kB / 0.9532 GB, free: 0.6094 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004878/0.005716, allocations: 344.2 kB / 0.9536 GB, free: 268 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.005728, allocations: 4.188 kB / 0.9536 GB, free: 264 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.005753, allocations: 12.38 kB / 0.9536 GB, free: 252 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.005762, allocations: 8.125 kB / 0.9536 GB, free: 244 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.006156, allocations: 259.8 kB / 0.9538 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.007295, allocations: 0.8358 MB / 0.9547 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.172e-05/0.007376, allocations: 61.12 kB / 0.9547 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.007418, allocations: 29.77 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.007438, allocations: 4 kB / 0.9548 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.007461, allocations: 30.56 kB / 0.9548 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.007462, allocations: 0 / 0.9548 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of matching and sorting (n=2): time 0.000262/0.007724, allocations: 137.3 kB / 0.9549 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.007766, allocations: 81.09 kB / 0.955 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.008238, allocations: 485.4 kB / 0.9555 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.008251, allocations: 25.7 kB / 0.9555 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.008367, allocations: 184.4 kB / 0.9557 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.985e-06/0.008375, allocations: 4 kB / 0.9557 GB, free: 14 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-05/0.00844, allocations: 49.64 kB / 0.9557 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.008551, allocations: 342.8 kB / 0.956 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.136e-05/0.008633, allocations: 59.89 kB / 0.9561 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.008722, allocations: 80.55 kB / 0.9562 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.008845, allocations: 97.66 kB / 0.9563 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.008847, allocations: 4 kB / 0.9563 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002224/0.00907, allocations: 181.5 kB / 0.9564 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.00909, allocations: 11.94 kB / 0.9564 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.009094, allocations: 80 / 0.9564 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.009107, allocations: 0 / 0.9564 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.009219, allocations: 23.98 kB / 0.9565 GB, free: 13.14 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.009225, allocations: 7.984 kB / 0.9565 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.282e-05/0.009288, allocations: 27.78 kB / 0.9565 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.009302, allocations: 4 kB / 0.9565 GB, free: 13.1 MB / 0.9167 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.0001612/0.009463, allocations: 209.4 kB / 0.9567 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.009517, allocations: 27.81 kB / 0.9567 GB, free: 12.86 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.009661, allocations: 164.5 kB / 0.9569 GB, free: 12.68 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.981e-05/0.009711, allocations: 188.2 kB / 0.9571 GB, free: 12.49 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.404e-05/0.009755, allocations: 176.3 kB / 0.9572 GB, free: 12.31 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/0.009803, allocations: 184.2 kB / 0.9574 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.0101, allocations: 488.2 kB / 0.9579 GB, free: 11.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-05/0.01013, allocations: 105 kB / 0.958 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.158e-05/0.01016, allocations: 116.9 kB / 0.9581 GB, free: 11.37 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-05/0.01021, allocations: 176.3 kB / 0.9583 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.01025, allocations: 188.1 kB / 0.9584 GB, free: 11 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.64e-05/0.01028, allocations: 176.3 kB / 0.9586 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.805e-05/0.01032, allocations: 180.2 kB / 0.9588 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.01042, allocations: 335.6 kB / 0.9591 GB, free: 10.28 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.208e-05/0.01049, allocations: 148.7 kB / 0.9592 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.01054, allocations: 180.2 kB / 0.9594 GB, free: 9.945 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.259e-05/0.0106, allocations: 105 kB / 0.9595 GB, free: 9.836 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.01065, allocations: 188.2 kB / 0.9597 GB, free: 9.645 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.01067, allocations: 109 kB / 0.9598 GB, free: 9.531 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002406/0.01091, allocations: 363.1 kB / 0.9601 GB, free: 9.184 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.01091, allocations: 0 / 0.9601 GB, free: 9.184 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001736/0.01108, allocations: 24 kB / 0.9602 GB, free: 9.16 MB / 0.9167 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.0002598/0.01134, allocations: 0.8358 MB / 0.961 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001079/0.01145, allocations: 75.88 kB / 0.9611 GB, free: 8.223 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01145, allocations: 0 / 0.9611 GB, free: 8.223 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.977e-06/0.01146, allocations: 4 kB / 0.9611 GB, free: 8.219 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.01176, allocations: 477.2 kB / 0.9615 GB, free: 7.746 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.01362, allocations: 2.831 MB / 0.9643 GB, free: 4.824 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.832e-05/0.01372, allocations: 165.9 kB / 0.9644 GB, free: 4.641 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 6.153e-05/0.01378, allocations: 54.25 kB / 0.9645 GB, free: 4.586 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.745e-05/0.01386, allocations: 76.47 kB / 0.9646 GB, free: 4.512 MB / 0.9167 GB Notification: Performance of SimCode: time 4.51e-07/0.01386, allocations: 4 kB / 0.9646 GB, free: 4.508 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.03036, allocations: 5.716 MB / 0.9701 GB, free: 14.95 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/6.992, allocations: 9.25 kB / 0.9702 GB, free: 14.94 MB / 0.9323 GB " [Timeout remaining time 293] (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/jenkins/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: 10.883068240247667]