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.001552/0.001552, allocations: 80.39 kB / 21.47 MB, free: 3.031 MB / 18.57 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.001882/0.001882, allocations: 171.5 kB / 24.87 MB, free: 9.258 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.9599/0.9599, allocations: 177.1 MB / 205.3 MB, free: 5.52 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.845/1.845, allocations: 359 MB / 0.6063 GB, free: 10.9 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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.397e-06/3.397e-06, allocations: 0 / 0.7883 GB, free: 12.24 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.457e-05/3.796e-05, allocations: 8.922 kB / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002669/0.002707, allocations: 0.73 MB / 0.789 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0003069/0.003014, allocations: 48.8 kB / 0.7891 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.00312, allocations: 4 kB / 0.7891 GB, free: 11.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.003281, allocations: 15.86 kB / 0.7891 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.003439, allocations: 9.344 kB / 0.7891 GB, free: 11.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 7.765e-05/0.003517, allocations: 23.92 kB / 0.7891 GB, free: 11.42 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.003785, allocations: 183.5 kB / 0.7893 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003082/0.004093, allocations: 150.4 kB / 0.7894 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.004367, allocations: 175.7 kB / 0.7896 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.004513, allocations: 83.73 kB / 0.7897 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.004563, allocations: 21.56 kB / 0.7897 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.77e-05/0.0046, allocations: 20 kB / 0.7897 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.693e-05/0.004687, allocations: 71.75 kB / 0.7898 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.625e-05/0.004773, allocations: 63.78 kB / 0.7898 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.005084, allocations: 208 kB / 0.79 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.005088, allocations: 3.938 kB / 0.79 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.363e-06/0.00509, allocations: 0 / 0.79 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.005097, allocations: 0.8125 kB / 0.79 GB, free: 10.46 MB / 0.7448 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.0006889/0.005786, allocations: 0.5779 MB / 0.7906 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.005833, allocations: 13.39 kB / 0.7906 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.794e-05/0.005931, allocations: 56.7 kB / 0.7907 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.006299, allocations: 242.9 kB / 0.7909 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.006353, allocations: 33.02 kB / 0.7909 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.00639, allocations: 24.38 kB / 0.791 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.00677, allocations: 222.6 kB / 0.7912 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.006782, allocations: 192 / 0.7912 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.006807, allocations: 14.62 kB / 0.7912 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.006817, allocations: 4.375 kB / 0.7912 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.00698, allocations: 71.88 kB / 0.7913 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.008029, allocations: 0.7103 MB / 0.792 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8e-05/0.008109, allocations: 62.05 kB / 0.792 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.00814, allocations: 19.5 kB / 0.792 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.008161, allocations: 0.5625 kB / 0.792 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.008197, allocations: 39.02 kB / 0.7921 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 2.926e-06/0.0082, allocations: 0 / 0.7921 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0002383/0.008438, allocations: 61.53 kB / 0.7921 GB, free: 8.164 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.008503, allocations: 86.36 kB / 0.7922 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.008891, allocations: 371.9 kB / 0.7926 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.008907, allocations: 25.7 kB / 0.7926 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.009095, allocations: 250.8 kB / 0.7928 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.017e-05/0.009105, allocations: 5.75 kB / 0.7928 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.009241, allocations: 83.25 kB / 0.7929 GB, free: 7.312 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000214/0.009455, allocations: 0.5118 MB / 0.7934 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.21e-05/0.009497, allocations: 12 kB / 0.7934 GB, free: 6.777 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.631e-05/0.009564, allocations: 36.22 kB / 0.7935 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.706e-05/0.009651, allocations: 51.34 kB / 0.7935 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.009654, allocations: 0.6562 kB / 0.7935 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001955/0.009849, allocations: 97.53 kB / 0.7936 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.00987, allocations: 7.656 kB / 0.7936 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.009879, allocations: 7.922 kB / 0.7936 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.009895, allocations: 4 kB / 0.7936 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.01004, allocations: 27.94 kB / 0.7936 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.01005, allocations: 3.938 kB / 0.7936 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.593e-05/0.0101, allocations: 14.3 kB / 0.7937 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.01013, allocations: 11.98 kB / 0.7937 GB, free: 6.504 MB / 0.7448 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 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.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.0001669/0.01029, allocations: 172.3 kB / 0.7938 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/0.01035, allocations: 15.91 kB / 0.7939 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002333/0.01059, allocations: 201.7 kB / 0.794 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/0.01069, allocations: 268.1 kB / 0.7943 GB, free: 5.828 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.651e-05/0.01079, allocations: 272.5 kB / 0.7946 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.572e-05/0.01088, allocations: 269.7 kB / 0.7948 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.01128, allocations: 0.5434 MB / 0.7953 GB, free: 4.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.985e-05/0.01135, allocations: 156.8 kB / 0.7955 GB, free: 4.547 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.096e-05/0.0114, allocations: 144.9 kB / 0.7956 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.634e-05/0.0115, allocations: 272.7 kB / 0.7959 GB, free: 4.125 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.414e-05/0.01159, allocations: 268.1 kB / 0.7962 GB, free: 3.855 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.779e-05/0.01168, allocations: 265.5 kB / 0.7964 GB, free: 3.59 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.701e-05/0.01178, allocations: 272 kB / 0.7967 GB, free: 3.316 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.01199, allocations: 459.8 kB / 0.7971 GB, free: 2.84 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.277e-05/0.01207, allocations: 160.8 kB / 0.7973 GB, free: 2.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.01218, allocations: 277.2 kB / 0.7975 GB, free: 2.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.0123, allocations: 152.8 kB / 0.7977 GB, free: 2.242 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.0124, allocations: 268.1 kB / 0.7979 GB, free: 1.973 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.827e-05/0.01245, allocations: 149.7 kB / 0.7981 GB, free: 1.82 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001859/0.01263, allocations: 205.1 kB / 0.7983 GB, free: 1.617 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01263, allocations: 0.8438 kB / 0.7983 GB, free: 1.617 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003598/0.01299, allocations: 51.72 kB / 0.7983 GB, free: 1.566 MB / 0.7448 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.0001645/0.01316, allocations: 219.7 kB / 0.7985 GB, free: 1.344 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001383/0.01329, allocations: 51.92 kB / 0.7986 GB, free: 1.289 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.0133, allocations: 0.75 kB / 0.7986 GB, free: 1.289 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.0133, allocations: 0 / 0.7986 GB, free: 1.289 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005698/0.01387, allocations: 0.7231 MB / 0.7993 GB, free: 0.5625 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005849/0.01445, allocations: 483.6 kB / 0.7997 GB, free: 60 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.488e-05/0.01454, allocations: 81.38 kB / 0.7998 GB, free: 15.96 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 6.236e-05/0.0146, allocations: 17.48 kB / 0.7998 GB, free: 15.94 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.718e-05/0.01469, allocations: 90.12 kB / 0.7999 GB, free: 15.85 MB / 0.7605 GB Notification: Performance of SimCode: time 1.222e-06/0.01469, allocations: 0 / 0.7999 GB, free: 15.85 MB / 0.7605 GB Notification: Performance of Templates: time 0.00423/0.01892, allocations: 1.155 MB / 0.801 GB, free: 14.73 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.920890868641436]