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 12.0.0-master/package.mo", uses=false) 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005337/0.005337, allocations: 100.9 kB / 15.73 MB, free: 6.051 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.001317/0.001317, allocations: 192.9 kB / 16.67 MB, free: 5.969 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.494/2.494, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 67.94 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2652, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001722/0.2669, allocations: 0.7076 MB / 1.243 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001899/0.2671, allocations: 47.84 kB / 1.243 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.65e-05/0.2672, allocations: 4 kB / 1.243 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.2673, allocations: 15.86 kB / 1.243 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.863e-05/0.2674, allocations: 15.88 kB / 1.243 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 4.745e-05/0.2675, allocations: 15.98 kB / 1.243 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.2677, allocations: 183.5 kB / 1.243 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.268, allocations: 264.9 kB / 1.243 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.848e-05/0.2681, allocations: 95.66 kB / 1.243 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.2683, allocations: 115.5 kB / 1.243 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.2683, allocations: 24 kB / 1.243 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.995e-05/0.2684, allocations: 24 kB / 1.243 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.322e-05/0.2684, allocations: 71.78 kB / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2686, allocations: 119.3 kB / 1.243 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.2689, allocations: 382.6 kB / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2689, allocations: 0 / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2689, allocations: 7.938 kB / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.131e-05/0.2689, allocations: 0 / 1.244 GB, free: 6.871 MB / 0.9669 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.0005839/0.2695, allocations: 0.5494 MB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2696, allocations: 8.031 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.056e-05/0.2696, allocations: 66.72 kB / 1.244 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.2697, allocations: 32.75 kB / 1.244 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2701, allocations: 325.2 kB / 1.245 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.2701, allocations: 28.91 kB / 1.245 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.2702, allocations: 28.38 kB / 1.245 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004701/0.2706, allocations: 339 kB / 1.245 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.2707, allocations: 3.938 kB / 1.245 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.2707, allocations: 12 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2707, allocations: 4 kB / 1.245 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.2711, allocations: 256.3 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2721, allocations: 0.9212 MB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.438e-05/0.2722, allocations: 57.14 kB / 1.246 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.088e-05/0.2723, allocations: 29.7 kB / 1.246 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.2723, allocations: 4 kB / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2723, allocations: 38.56 kB / 1.246 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2723, allocations: 0 / 1.246 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002391/0.2726, allocations: 133.4 kB / 1.247 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.2726, allocations: 77.11 kB / 1.247 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.2731, allocations: 477.5 kB / 1.247 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2731, allocations: 25.7 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.2733, allocations: 188 kB / 1.247 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.2733, allocations: 11.94 kB / 1.247 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-05/0.2734, allocations: 45.7 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2735, allocations: 338.8 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/0.2736, allocations: 55.95 kB / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.2737, allocations: 73.67 kB / 1.248 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.2738, allocations: 105.6 kB / 1.248 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2738, allocations: 4 kB / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002437/0.2741, allocations: 185.3 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2741, allocations: 10.03 kB / 1.248 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2741, allocations: 3.938 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.2741, allocations: 0 / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.2743, allocations: 23.98 kB / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2743, allocations: 4 kB / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.2743, allocations: 31.73 kB / 1.248 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.2744, allocations: 4 kB / 1.248 GB, free: 2.164 MB / 0.9669 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.0001737/0.2745, allocations: 209.4 kB / 1.248 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-05/0.2746, allocations: 31.75 kB / 1.248 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.2748, allocations: 162.2 kB / 1.249 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-05/0.2748, allocations: 180.2 kB / 1.249 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.166e-05/0.2749, allocations: 180.3 kB / 1.249 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.626e-05/0.275, allocations: 184.2 kB / 1.249 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.2753, allocations: 0.5244 MB / 1.25 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.956e-05/0.2754, allocations: 101 kB / 1.25 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.886e-05/0.2754, allocations: 104.9 kB / 1.25 GB, free: 408 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.904e-05/0.2755, allocations: 188.3 kB / 1.25 GB, free: 212 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/0.2756, allocations: 184.2 kB / 1.25 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.638e-05/0.2757, allocations: 180.3 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-05/0.2757, allocations: 180.2 kB / 1.251 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.2759, allocations: 335.7 kB / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.276, allocations: 225.9 kB / 1.251 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.2761, allocations: 180.3 kB / 1.251 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2762, allocations: 109 kB / 1.251 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.539e-05/0.2763, allocations: 180.2 kB / 1.251 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/0.2763, allocations: 101 kB / 1.252 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003709/0.2767, allocations: 363.1 kB / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2767, allocations: 0 / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002408/0.277, allocations: 31.95 kB / 1.252 GB, free: 14.08 MB / 0.9825 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.0004292/0.2774, allocations: 0.8436 MB / 1.253 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001489/0.2776, allocations: 75.89 kB / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2776, allocations: 0 / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.2776, allocations: 0 / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.278, allocations: 485.2 kB / 1.253 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.2807, allocations: 2.827 MB / 1.256 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2811, allocations: 0.7752 MB / 1.257 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.131e-05/0.2812, allocations: 54.25 kB / 1.257 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2813, allocations: 75.41 kB / 1.257 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2813, allocations: 4 kB / 1.257 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4174/0.6987, allocations: 4.947 MB / 1.262 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/8.999, allocations: 14.02 kB / 1.262 GB, free: 4.016 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > 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