Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.001826/0.001826, allocations: 84.39 kB / 20.23 MB, free: 4.176 MB / 18.57 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.002223/0.002223, allocations: 161.3 kB / 23.55 MB, free: 0.8633 MB / 18.57 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.505/1.505, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.859/2.859, allocations: 377.8 MB / 0.6232 GB, free: 8.512 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 0.875 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.663e-05/2.892e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002216/0.002245, allocations: 0.854 MB / 0.8116 GB, free: 1.258 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0003422/0.002587, allocations: 99.55 kB / 0.8117 GB, free: 1.16 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.701e-05/0.002674, allocations: 4.938 kB / 0.8117 GB, free: 1.156 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.002811, allocations: 23.73 kB / 0.8117 GB, free: 1.133 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.002947, allocations: 15.92 kB / 0.8118 GB, free: 1.117 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 9.11e-05/0.003038, allocations: 32.59 kB / 0.8118 GB, free: 1.086 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.000359/0.003397, allocations: 268.8 kB / 0.812 GB, free: 0.8242 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.003723, allocations: 162.9 kB / 0.8122 GB, free: 0.6602 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.003975, allocations: 195.5 kB / 0.8124 GB, free: 480 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.004167, allocations: 123.7 kB / 0.8125 GB, free: 356 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 5.842e-05/0.004226, allocations: 33.22 kB / 0.8125 GB, free: 324 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 5.193e-05/0.004277, allocations: 32 kB / 0.8126 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.004391, allocations: 83.69 kB / 0.8126 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.004524, allocations: 96.44 kB / 0.8127 GB, free: 112 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0005785/0.005102, allocations: 474.4 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.005105, allocations: 0.9062 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.51e-07/0.005105, allocations: 0 / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.323e-05/0.005119, allocations: 3.938 kB / 0.8132 GB, free: 15.64 MB / 0.7761 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.0008692/0.005988, allocations: 0.5214 MB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.006025, allocations: 8.812 kB / 0.8137 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.006163, allocations: 68.64 kB / 0.8138 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004977/0.006661, allocations: 279.8 kB / 0.814 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.36e-05/0.006724, allocations: 37.02 kB / 0.8141 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.00678, allocations: 38.39 kB / 0.8141 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007263/0.007506, allocations: 404.2 kB / 0.8145 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.007519, allocations: 192 / 0.8145 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.007553, allocations: 12.38 kB / 0.8145 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.007565, allocations: 8.375 kB / 0.8145 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.008276, allocations: 307.5 kB / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.009725, allocations: 0.8428 MB / 0.8156 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.009894, allocations: 86.69 kB / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.9e-05/0.009973, allocations: 49.78 kB / 0.8158 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.009994, allocations: 0 / 0.8158 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.01003, allocations: 38.56 kB / 0.8158 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 8.52e-07/0.01003, allocations: 0.9688 kB / 0.8158 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0003932/0.01043, allocations: 153.8 kB / 0.816 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.0105, allocations: 81.86 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.01093, allocations: 345.5 kB / 0.8164 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.01095, allocations: 26.27 kB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/0.01115, allocations: 212.4 kB / 0.8166 GB, free: 12 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.01117, allocations: 16.59 kB / 0.8166 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.01129, allocations: 73.67 kB / 0.8167 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.01148, allocations: 335.2 kB / 0.817 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.0116, allocations: 64.64 kB / 0.8171 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.01176, allocations: 101.5 kB / 0.8172 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.01195, allocations: 110.7 kB / 0.8173 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01195, allocations: 0 / 0.8173 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003692/0.01232, allocations: 209.9 kB / 0.8175 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.01234, allocations: 4 kB / 0.8175 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.01235, allocations: 5.359 kB / 0.8175 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.01237, allocations: 0 / 0.8175 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.01252, allocations: 27.98 kB / 0.8175 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.01253, allocations: 9.156 kB / 0.8175 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.604e-05/0.01259, allocations: 15.89 kB / 0.8175 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.01261, allocations: 4 kB / 0.8175 GB, free: 11.02 MB / 0.7761 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.0002442/0.01286, allocations: 205.1 kB / 0.8177 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.01292, allocations: 25.48 kB / 0.8177 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002476/0.01317, allocations: 108.7 kB / 0.8178 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.01317, allocations: 0 / 0.8178 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.01318, allocations: 0 / 0.8178 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.01318, allocations: 0.6875 kB / 0.8178 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006453/0.01383, allocations: 0.5609 MB / 0.8184 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01383, allocations: 0 / 0.8184 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-05/0.01386, allocations: 8 kB / 0.8184 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.01386, allocations: 0 / 0.8184 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.01387, allocations: 4 kB / 0.8184 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.01388, allocations: 8.766 kB / 0.8184 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01388, allocations: 0 / 0.8184 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.01406, allocations: 123 kB / 0.8185 GB, free: 9.898 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.01411, allocations: 19.84 kB / 0.8186 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.01413, allocations: 3.953 kB / 0.8186 GB, free: 9.875 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.591e-05/0.01418, allocations: 7.938 kB / 0.8186 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.0142, allocations: 11.98 kB / 0.8186 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.01421, allocations: 0 / 0.8186 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002955/0.0145, allocations: 237.2 kB / 0.8188 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.0145, allocations: 0 / 0.8188 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002856/0.01479, allocations: 55.78 kB / 0.8189 GB, free: 9.562 MB / 0.7761 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.000132/0.01492, allocations: 99.34 kB / 0.8189 GB, free: 9.457 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002458/0.01517, allocations: 109.4 kB / 0.8191 GB, free: 9.352 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.01517, allocations: 0 / 0.8191 GB, free: 9.352 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.057e-05/0.0152, allocations: 16 kB / 0.8191 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.01545, allocations: 24.09 kB / 0.8191 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009021/0.01635, allocations: 0.4971 MB / 0.8196 GB, free: 8.777 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.01657, allocations: 190.2 kB / 0.8198 GB, free: 8.578 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.649e-05/0.01667, allocations: 37.61 kB / 0.8198 GB, free: 8.543 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.01672, allocations: 16.5 kB / 0.8198 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of SimCode: time 8.61e-07/0.01672, allocations: 1.875 kB / 0.8198 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of Templates: time 0.004836/0.02156, allocations: 1.21 MB / 0.821 GB, free: 7.359 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.696722081978805]