Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00178/0.00178, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002372/0.002372, allocations: 212.7 kB / 23 MB, free: 4.57 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.564/1.564, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.187/3.187, allocations: 0.49 GB / 0.7958 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [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.002059/0.002059, allocations: 68.41 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3272, allocations: 176.1 MB / 1.327 GB, free: 1.465 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002071/0.3293, allocations: 0.7241 MB / 1.328 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002311/0.3295, allocations: 47.83 kB / 1.328 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.239e-05/0.3296, allocations: 4 kB / 1.328 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.3297, allocations: 19.86 kB / 1.328 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.3299, allocations: 11.92 kB / 1.328 GB, free: 0.6641 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.753e-05/0.3299, allocations: 19.98 kB / 1.328 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.3302, allocations: 183.5 kB / 1.328 GB, free: 476 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/0.3304, allocations: 146 kB / 1.328 GB, free: 328 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.858e-05/0.3305, allocations: 103.6 kB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.3307, allocations: 111.5 kB / 1.328 GB, free: 112 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.3307, allocations: 24 kB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.3308, allocations: 24 kB / 1.328 GB, free: 64 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.187e-05/0.3309, allocations: 71.86 kB / 1.329 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.331, allocations: 139.1 kB / 1.329 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.3314, allocations: 366.5 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3314, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3314, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.3314, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 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.0006507/0.332, allocations: 0.4897 MB / 1.33 GB, free: 14.97 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.332, allocations: 8.031 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.261e-05/0.3321, allocations: 32.75 kB / 1.33 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.3325, allocations: 251.6 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.264e-05/0.3326, allocations: 36.95 kB / 1.33 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.3326, allocations: 24.38 kB / 1.33 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.3331, allocations: 340.3 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3332, allocations: 192 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.3332, allocations: 15.94 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.3332, allocations: 7.984 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.3336, allocations: 264.3 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3349, allocations: 0.879 MB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.649e-05/0.335, allocations: 53.2 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.338e-05/0.335, allocations: 37.69 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.335, allocations: 3.938 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3351, allocations: 38.56 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.3351, allocations: 3.938 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002822/0.3353, allocations: 129.4 kB / 1.332 GB, free: 12.75 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3354, allocations: 77.11 kB / 1.332 GB, free: 12.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.3359, allocations: 481.4 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.336, allocations: 29.69 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.3361, allocations: 184.1 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.3361, allocations: 11.94 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.046e-05/0.3362, allocations: 49.66 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3363, allocations: 342.8 kB / 1.333 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-05/0.3364, allocations: 55.95 kB / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.3365, allocations: 74.92 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.3367, allocations: 97.61 kB / 1.333 GB, free: 11.31 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3367, allocations: 0 / 1.333 GB, free: 11.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002615/0.3369, allocations: 185.4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.337, allocations: 15.92 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.337, allocations: 0 / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.337, allocations: 0 / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3371, allocations: 20 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.3371, allocations: 4.156 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.3372, allocations: 31.77 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.3372, allocations: 7.984 kB / 1.333 GB, free: 11.04 MB / 1.029 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.0002037/0.3374, allocations: 197.5 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-05/0.3375, allocations: 35.69 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.3377, allocations: 168.6 kB / 1.334 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.08e-05/0.3377, allocations: 184.2 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.022e-05/0.3378, allocations: 176.3 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.592e-05/0.3379, allocations: 180.3 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.3383, allocations: 0.4962 MB / 1.335 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.67e-05/0.3383, allocations: 104.9 kB / 1.335 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.674e-05/0.3384, allocations: 108.9 kB / 1.335 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.993e-05/0.3385, allocations: 188.2 kB / 1.335 GB, free: 9.113 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-05/0.3385, allocations: 176.3 kB / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.827e-05/0.3386, allocations: 184.2 kB / 1.335 GB, free: 8.746 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.499e-05/0.3387, allocations: 176.3 kB / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.3389, allocations: 335.8 kB / 1.336 GB, free: 8.215 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.339, allocations: 144.7 kB / 1.336 GB, free: 8.066 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.3391, allocations: 192.2 kB / 1.336 GB, free: 7.871 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.3392, allocations: 101 kB / 1.336 GB, free: 7.766 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.433e-05/0.3393, allocations: 188.2 kB / 1.336 GB, free: 7.574 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.3394, allocations: 101 kB / 1.336 GB, free: 7.469 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004101/0.3398, allocations: 359.1 kB / 1.337 GB, free: 7.121 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3398, allocations: 0 / 1.337 GB, free: 7.121 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002662/0.3401, allocations: 39.88 kB / 1.337 GB, free: 7.082 MB / 1.029 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.0001564/0.3402, allocations: 178.5 kB / 1.337 GB, free: 6.898 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.3404, allocations: 67.89 kB / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3404, allocations: 0 / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.362e-06/0.3404, allocations: 0 / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.3409, allocations: 485.1 kB / 1.338 GB, free: 6.355 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007192/0.3416, allocations: 0.5098 MB / 1.338 GB, free: 5.805 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.342, allocations: 0.7713 MB / 1.339 GB, free: 5.008 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.95e-05/0.342, allocations: 19.44 kB / 1.339 GB, free: 4.988 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.342, allocations: 4 kB / 1.339 GB, free: 4.984 MB / 1.029 GB Notification: Performance of Templates: time 0.005514/0.3476, allocations: 3.299 MB / 1.342 GB, free: 1.688 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.573328880011104]