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.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.001414/0.001414, allocations: 111.7 kB / 18.88 MB, free: 2.871 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.00154/0.00154, allocations: 204.7 kB / 22.18 MB, free: 5.176 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.337/1.337, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.935/2.935, allocations: 497.2 MB / 0.7845 GB, free: 33.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 61.97 kB / 1.139 GB, free: 33.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3074, allocations: 173.9 MB / 1.309 GB, free: 15.95 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001932/0.3094, allocations: 0.7332 MB / 1.31 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0001763/0.3095, allocations: 43.84 kB / 1.31 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.3096, allocations: 4 kB / 1.31 GB, free: 15.17 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.804e-05/0.3097, allocations: 11.86 kB / 1.31 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.685e-05/0.3098, allocations: 7.938 kB / 1.31 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.212e-05/0.3098, allocations: 19.98 kB / 1.31 GB, free: 15.13 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.3101, allocations: 191.4 kB / 1.31 GB, free: 14.95 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.3103, allocations: 144.9 kB / 1.31 GB, free: 14.8 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.39e-05/0.3104, allocations: 95.72 kB / 1.31 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.3105, allocations: 111.4 kB / 1.311 GB, free: 14.6 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.3106, allocations: 27.94 kB / 1.311 GB, free: 14.57 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.697e-05/0.3106, allocations: 32 kB / 1.311 GB, free: 14.54 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.3107, allocations: 71.77 kB / 1.311 GB, free: 14.47 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.3108, allocations: 127.3 kB / 1.311 GB, free: 14.34 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.3112, allocations: 366.4 kB / 1.311 GB, free: 13.98 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3112, allocations: 8 kB / 1.311 GB, free: 13.98 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.624e-06/0.3112, allocations: 0 / 1.311 GB, free: 13.98 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.3112, allocations: 0 / 1.311 GB, free: 13.98 MB / 1.014 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.0007068/0.3119, allocations: 0.5549 MB / 1.312 GB, free: 13.37 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.312, allocations: 12.02 kB / 1.312 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.71e-05/0.312, allocations: 36.75 kB / 1.312 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.3125, allocations: 309.4 kB / 1.312 GB, free: 12.98 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.248e-05/0.3125, allocations: 32.92 kB / 1.312 GB, free: 12.95 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.3126, allocations: 24.38 kB / 1.312 GB, free: 12.93 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.3131, allocations: 339 kB / 1.312 GB, free: 12.58 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3131, allocations: 192 / 1.312 GB, free: 12.58 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3131, allocations: 15.92 kB / 1.312 GB, free: 12.57 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.3131, allocations: 8 kB / 1.312 GB, free: 12.56 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.3135, allocations: 267.8 kB / 1.313 GB, free: 12.3 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.3147, allocations: 0.9172 MB / 1.314 GB, free: 11.32 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.35e-05/0.3148, allocations: 53.2 kB / 1.314 GB, free: 11.25 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.651e-05/0.3149, allocations: 33.77 kB / 1.314 GB, free: 11.21 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.3149, allocations: 11.88 kB / 1.314 GB, free: 11.2 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.3149, allocations: 34.56 kB / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3149, allocations: 0 / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0002742/0.3152, allocations: 133.4 kB / 1.314 GB, free: 11.02 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.3152, allocations: 77.11 kB / 1.314 GB, free: 10.93 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.3158, allocations: 477.7 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3158, allocations: 29.7 kB / 1.314 GB, free: 10.42 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.3159, allocations: 183.8 kB / 1.315 GB, free: 10.24 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.3159, allocations: 11.98 kB / 1.315 GB, free: 10.23 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.594e-05/0.316, allocations: 45.66 kB / 1.315 GB, free: 10.18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3161, allocations: 338.8 kB / 1.315 GB, free: 9.836 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-05/0.3162, allocations: 55.95 kB / 1.315 GB, free: 9.781 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.826e-05/0.3163, allocations: 77.67 kB / 1.315 GB, free: 9.699 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.3165, allocations: 101.6 kB / 1.315 GB, free: 9.594 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3165, allocations: 0 / 1.315 GB, free: 9.594 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002512/0.3167, allocations: 193.3 kB / 1.315 GB, free: 9.398 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3167, allocations: 4 kB / 1.315 GB, free: 9.395 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.3167, allocations: 0 / 1.315 GB, free: 9.395 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.3167, allocations: 4 kB / 1.315 GB, free: 9.391 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.3169, allocations: 31.86 kB / 1.315 GB, free: 9.359 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.3169, allocations: 0 / 1.315 GB, free: 9.359 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.151e-05/0.3169, allocations: 27.78 kB / 1.315 GB, free: 9.332 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.317, allocations: 4 kB / 1.315 GB, free: 9.328 MB / 1.014 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.0001767/0.3171, allocations: 197.7 kB / 1.316 GB, free: 9.125 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.3172, allocations: 31.75 kB / 1.316 GB, free: 9.094 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.3174, allocations: 164.6 kB / 1.316 GB, free: 8.914 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.31e-05/0.3174, allocations: 176.3 kB / 1.316 GB, free: 8.734 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.798e-05/0.3175, allocations: 188.2 kB / 1.316 GB, free: 8.543 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.258e-05/0.3176, allocations: 176.3 kB / 1.316 GB, free: 8.363 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.318, allocations: 0.5205 MB / 1.317 GB, free: 7.785 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.191e-05/0.318, allocations: 108.9 kB / 1.317 GB, free: 7.672 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.515e-05/0.3181, allocations: 105 kB / 1.317 GB, free: 7.562 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-05/0.3182, allocations: 180.2 kB / 1.317 GB, free: 7.379 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.38e-05/0.3183, allocations: 184.3 kB / 1.317 GB, free: 7.191 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.256e-05/0.3183, allocations: 180.2 kB / 1.318 GB, free: 7.008 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.887e-05/0.3184, allocations: 184.2 kB / 1.318 GB, free: 6.82 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.3186, allocations: 327.8 kB / 1.318 GB, free: 6.477 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3188, allocations: 225.8 kB / 1.318 GB, free: 6.23 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3189, allocations: 184.2 kB / 1.318 GB, free: 6.043 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.319, allocations: 105 kB / 1.319 GB, free: 5.934 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.101e-05/0.3191, allocations: 184.2 kB / 1.319 GB, free: 5.746 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-05/0.3191, allocations: 109 kB / 1.319 GB, free: 5.633 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004003/0.3195, allocations: 359.1 kB / 1.319 GB, free: 5.285 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3195, allocations: 4 kB / 1.319 GB, free: 5.281 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002454/0.3198, allocations: 24 kB / 1.319 GB, free: 5.258 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.0001591/0.32, allocations: 182.5 kB / 1.319 GB, free: 5.07 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001643/0.3201, allocations: 72.19 kB / 1.319 GB, free: 5 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3201, allocations: 0 / 1.319 GB, free: 5 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.3201, allocations: 4 kB / 1.319 GB, free: 4.996 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.3206, allocations: 489.2 kB / 1.32 GB, free: 4.512 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006498/0.3212, allocations: 0.4965 MB / 1.32 GB, free: 3.988 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.3217, allocations: 0.7791 MB / 1.321 GB, free: 3.184 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.3218, allocations: 54.25 kB / 1.321 GB, free: 3.129 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.3218, allocations: 19.44 kB / 1.321 GB, free: 3.109 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.3218, allocations: 0 / 1.321 GB, free: 3.109 MB / 1.014 GB Notification: Performance of Templates: time 0.004958/0.3268, allocations: 1.735 MB / 1.323 GB, free: 1.387 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] 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_2/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: 7.9829045152291656]