Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 104.5 kB / 15.98 MB, free: 6.352 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.001158/0.001158, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.359/1.359, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.536/2.536, allocations: 469.4 MB / 0.7423 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 69.16 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2963, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002285/0.2986, allocations: 0.9063 MB / 1.065 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002782/0.2989, allocations: 83.7 kB / 1.065 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.299, allocations: 4 kB / 1.065 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.2992, allocations: 15.86 kB / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.2993, allocations: 19.92 kB / 1.065 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 9.188e-05/0.2994, allocations: 35.98 kB / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.2997, allocations: 255.4 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004053/0.3001, allocations: 294.3 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.3003, allocations: 123.6 kB / 1.065 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.3005, allocations: 147.2 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.787e-05/0.3005, allocations: 32 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.3006, allocations: 32 kB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.186e-05/0.3007, allocations: 87.72 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.3008, allocations: 159.1 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.3012, allocations: 359.2 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3012, allocations: 0 / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3012, allocations: 0 / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.398e-05/0.3012, allocations: 0 / 1.066 GB, free: 12.85 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.000776/0.302, allocations: 0.585 MB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.302, allocations: 12.61 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.057e-05/0.3021, allocations: 40.47 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.3025, allocations: 340 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.426e-05/0.3026, allocations: 40.95 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.3026, allocations: 32.38 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000619/0.3033, allocations: 400.2 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3033, allocations: 192 / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.3033, allocations: 19.94 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.3033, allocations: 8 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004634/0.3038, allocations: 299.6 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.3052, allocations: 1.053 MB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.3054, allocations: 97.16 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.71e-05/0.3055, allocations: 41.8 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.3055, allocations: 0 / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.3055, allocations: 42.48 kB / 1.069 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.3055, allocations: 0 / 1.069 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0003333/0.3059, allocations: 161.2 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.3059, allocations: 88.98 kB / 1.069 GB, free: 9.406 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005379/0.3065, allocations: 0.5091 MB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.3065, allocations: 25.7 kB / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.3067, allocations: 207.5 kB / 1.07 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.3067, allocations: 15.75 kB / 1.07 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.3068, allocations: 49.7 kB / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3069, allocations: 350.8 kB / 1.07 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.307, allocations: 63.95 kB / 1.071 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3071, allocations: 91.84 kB / 1.071 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.3073, allocations: 117.5 kB / 1.071 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3073, allocations: 0 / 1.071 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003044/0.3076, allocations: 209.1 kB / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3076, allocations: 8 kB / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3076, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3077, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.3078, allocations: 39.86 kB / 1.071 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.3078, allocations: 0 / 1.071 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.964e-05/0.3079, allocations: 39.53 kB / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3079, allocations: 4 kB / 1.071 GB, free: 7.652 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: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001891/0.3081, allocations: 205.9 kB / 1.071 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.719e-05/0.3082, allocations: 27.62 kB / 1.071 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.3084, allocations: 126 kB / 1.071 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3085, allocations: 3.938 kB / 1.071 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3085, allocations: 0 / 1.071 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3085, allocations: 384 / 1.071 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005436/0.309, allocations: 0.6525 MB / 1.072 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.309, allocations: 192 / 1.072 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.392e-05/0.3091, allocations: 8 kB / 1.072 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3091, allocations: 0 / 1.072 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3091, allocations: 11.94 kB / 1.072 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3091, allocations: 4 kB / 1.072 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3091, allocations: 0 / 1.072 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.3092, allocations: 139.3 kB / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.333e-05/0.3093, allocations: 120.6 kB / 1.072 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.3094, allocations: 3.938 kB / 1.072 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.341e-05/0.3094, allocations: 4 kB / 1.072 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.3095, allocations: 11.92 kB / 1.072 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.3095, allocations: 0 / 1.072 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003921/0.3099, allocations: 391.2 kB / 1.073 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.513e-06/0.3099, allocations: 0 / 1.073 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000253/0.3101, allocations: 47.78 kB / 1.073 GB, free: 5.785 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001021/0.3103, allocations: 103.2 kB / 1.073 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002076/0.3105, allocations: 111.9 kB / 1.073 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3105, allocations: 0 / 1.073 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.633e-05/0.3105, allocations: 15.94 kB / 1.073 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.3108, allocations: 33.5 kB / 1.073 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007569/0.3115, allocations: 0.6059 MB / 1.074 GB, free: 4.871 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3119, allocations: 0.7947 MB / 1.074 GB, free: 4.051 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.768e-05/0.3119, allocations: 23.44 kB / 1.074 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.312, allocations: 0 / 1.074 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of Templates: time 0.005818/0.3178, allocations: 3.765 MB / 1.078 GB, free: 268 kB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches