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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 101.1 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.557/2.557, allocations: 469.4 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 66.58 kB / 0.9088 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3004, allocations: 159.1 MB / 1.064 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002312/0.3028, allocations: 0.7034 MB / 1.065 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002268/0.303, allocations: 51.78 kB / 1.065 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.784e-05/0.3031, allocations: 7.938 kB / 1.065 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.3032, allocations: 11.86 kB / 1.065 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.3034, allocations: 19.92 kB / 1.065 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 5.453e-05/0.3034, allocations: 11.98 kB / 1.065 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000216/0.3037, allocations: 179.6 kB / 1.065 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.304, allocations: 260.9 kB / 1.065 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3041, allocations: 99.66 kB / 1.066 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3043, allocations: 115.5 kB / 1.066 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.3043, allocations: 24 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.903e-05/0.3044, allocations: 24 kB / 1.066 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.3045, allocations: 71.78 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.3046, allocations: 123.3 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.3049, allocations: 354.8 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3049, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3049, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.584e-05/0.3049, allocations: 4 kB / 1.066 GB, free: 12.95 MB / 0.8419 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.0008229/0.3058, allocations: 0.5482 MB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.3058, allocations: 16.5 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.664e-05/0.3059, allocations: 36.5 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004706/0.3064, allocations: 313.2 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-05/0.3065, allocations: 24.94 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.3066, allocations: 28.31 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/0.3072, allocations: 343 kB / 1.067 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3072, allocations: 192 / 1.067 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.3073, allocations: 19.94 kB / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3073, allocations: 4 kB / 1.068 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004479/0.3077, allocations: 256.4 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.3091, allocations: 0.9207 MB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.929e-05/0.3092, allocations: 57.14 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.499e-05/0.3093, allocations: 37.75 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.3093, allocations: 3.938 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3094, allocations: 34.5 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.402e-06/0.3094, allocations: 4 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003017/0.3097, allocations: 125.4 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3097, allocations: 81.05 kB / 1.069 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005189/0.3103, allocations: 477.4 kB / 1.069 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3103, allocations: 25.7 kB / 1.069 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3104, allocations: 183.6 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.3105, allocations: 7.906 kB / 1.07 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/0.3105, allocations: 41.95 kB / 1.07 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3107, allocations: 346.8 kB / 1.07 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.826e-05/0.3108, allocations: 51.95 kB / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.18e-05/0.3109, allocations: 77.66 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.311, allocations: 101.7 kB / 1.07 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.311, allocations: 0 / 1.07 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002623/0.3113, allocations: 185.1 kB / 1.07 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3113, allocations: 4 kB / 1.07 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3113, allocations: 4 kB / 1.07 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3113, allocations: 7.984 kB / 1.07 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3115, allocations: 27.94 kB / 1.07 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3115, allocations: 0 / 1.07 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.3116, allocations: 23.69 kB / 1.07 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3116, allocations: 8 kB / 1.07 GB, free: 8.336 MB / 0.8419 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.0001932/0.3118, allocations: 189.8 kB / 1.071 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/0.3119, allocations: 35.56 kB / 1.071 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001787/0.3121, allocations: 160.6 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.929e-05/0.3121, allocations: 180.2 kB / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.17e-05/0.3122, allocations: 184.2 kB / 1.071 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.277e-05/0.3123, allocations: 180.2 kB / 1.071 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.3126, allocations: 0.5283 MB / 1.072 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.473e-05/0.3127, allocations: 116.9 kB / 1.072 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.739e-05/0.3127, allocations: 101 kB / 1.072 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-05/0.3128, allocations: 184.2 kB / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.424e-05/0.3128, allocations: 180.2 kB / 1.072 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.774e-05/0.3129, allocations: 180.3 kB / 1.073 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.636e-05/0.313, allocations: 188.2 kB / 1.073 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001709/0.3131, allocations: 331.6 kB / 1.073 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.3133, allocations: 217.7 kB / 1.073 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.416e-05/0.3134, allocations: 184.2 kB / 1.073 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.3135, allocations: 108.9 kB / 1.074 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.3136, allocations: 184.3 kB / 1.074 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.3136, allocations: 104.9 kB / 1.074 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003668/0.314, allocations: 359.1 kB / 1.074 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.314, allocations: 0 / 1.074 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002829/0.3143, allocations: 32 kB / 1.074 GB, free: 4.254 MB / 0.8419 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.0001468/0.3144, allocations: 182.5 kB / 1.074 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000193/0.3146, allocations: 75.89 kB / 1.074 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3146, allocations: 0 / 1.074 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.703e-06/0.3146, allocations: 0 / 1.074 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.3151, allocations: 481.2 kB / 1.075 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007173/0.3158, allocations: 0.5177 MB / 1.075 GB, free: 2.969 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.3162, allocations: 0.7753 MB / 1.076 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.348e-05/0.3163, allocations: 19.44 kB / 1.076 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.3163, allocations: 0 / 1.076 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of Templates: time 0.443/0.7593, allocations: 3.257 MB / 1.079 GB, free: 21.48 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches