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.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.001777/0.001777, allocations: 79.36 kB / 19.18 MB, free: 2.516 MB / 14.72 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.002334/0.002334, allocations: 165.5 kB / 22.46 MB, free: 5.375 MB / 14.72 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.494/1.494, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.922/2.922, allocations: 389 MB / 0.633 GB, free: 0.9883 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.326e-06/3.326e-06, allocations: 0 / 1 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.069e-05/3.401e-05, allocations: 2.281 kB / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002262/0.002296, allocations: 0.8413 MB / 1.001 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003425/0.002638, allocations: 103.6 kB / 1.001 GB, free: 6.359 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.002748, allocations: 4 kB / 1.001 GB, free: 6.355 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.002889, allocations: 23.73 kB / 1.001 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.003034, allocations: 15.92 kB / 1.001 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001022/0.003136, allocations: 35.95 kB / 1.001 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.003473, allocations: 259.4 kB / 1.001 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000354/0.003827, allocations: 170.9 kB / 1.002 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.004056, allocations: 191.6 kB / 1.002 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.004243, allocations: 127.6 kB / 1.002 GB, free: 5.543 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.004313, allocations: 36 kB / 1.002 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.003e-05/0.004363, allocations: 32 kB / 1.002 GB, free: 5.477 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.051e-05/0.004453, allocations: 79.7 kB / 1.002 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.004575, allocations: 99.73 kB / 1.002 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000496/0.005071, allocations: 474.4 kB / 1.003 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.005075, allocations: 4 kB / 1.003 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.72e-07/0.005076, allocations: 0 / 1.003 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.754e-05/0.005094, allocations: 0 / 1.003 GB, free: 4.832 MB / 0.9512 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.000808/0.005902, allocations: 0.5169 MB / 1.003 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.005937, allocations: 11.97 kB / 1.003 GB, free: 4.27 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.411e-05/0.006021, allocations: 40.7 kB / 1.003 GB, free: 4.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.006468, allocations: 273.7 kB / 1.003 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.006523, allocations: 37.03 kB / 1.003 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.006572, allocations: 32.38 kB / 1.003 GB, free: 3.867 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.007224, allocations: 404 kB / 1.004 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.007238, allocations: 192 / 1.004 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.00727, allocations: 16.38 kB / 1.004 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.007281, allocations: 8.375 kB / 1.004 GB, free: 3.438 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.007773, allocations: 311.6 kB / 1.004 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.009114, allocations: 0.8412 MB / 1.005 GB, free: 2.254 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/0.0093, allocations: 85.2 kB / 1.005 GB, free: 2.152 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.877e-05/0.009379, allocations: 49.72 kB / 1.005 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.009405, allocations: 8 kB / 1.005 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.009448, allocations: 34.56 kB / 1.005 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.009449, allocations: 0 / 1.005 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0003715/0.009821, allocations: 153.5 kB / 1.005 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.009885, allocations: 81.11 kB / 1.005 GB, free: 1.793 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004111/0.0103, allocations: 341.5 kB / 1.006 GB, free: 1.457 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.01032, allocations: 25.7 kB / 1.006 GB, free: 1.426 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.0105, allocations: 208.4 kB / 1.006 GB, free: 1.219 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.01053, allocations: 23.88 kB / 1.006 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.01064, allocations: 73.64 kB / 1.006 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.0108, allocations: 334.8 kB / 1.006 GB, free: 0.7812 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.01092, allocations: 67.95 kB / 1.006 GB, free: 0.7148 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.01105, allocations: 91.53 kB / 1.006 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.01123, allocations: 109.6 kB / 1.007 GB, free: 0.5078 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.01124, allocations: 3.984 kB / 1.007 GB, free: 0.5039 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003367/0.01157, allocations: 201.3 kB / 1.007 GB, free: 308 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.01159, allocations: 4 kB / 1.007 GB, free: 304 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.0116, allocations: 7.922 kB / 1.007 GB, free: 296 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.01162, allocations: 4 kB / 1.007 GB, free: 292 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.01177, allocations: 31.98 kB / 1.007 GB, free: 260 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.01178, allocations: 0 / 1.007 GB, free: 260 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.01184, allocations: 23.84 kB / 1.007 GB, free: 236 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.01186, allocations: 8 kB / 1.007 GB, free: 228 kB / 0.9512 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.0002236/0.01209, allocations: 208.2 kB / 1.007 GB, free: 12 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.01218, allocations: 20.09 kB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.0124, allocations: 100.6 kB / 1.007 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.01241, allocations: 4 kB / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.01241, allocations: 0 / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01241, allocations: 4.062 kB / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.013, allocations: 0.5584 MB / 1.008 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.013, allocations: 0 / 1.008 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-05/0.01303, allocations: 7.938 kB / 1.008 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.01303, allocations: 0 / 1.008 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.01304, allocations: 4 kB / 1.008 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.01305, allocations: 3.938 kB / 1.008 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.01305, allocations: 0 / 1.008 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.0132, allocations: 119.7 kB / 1.008 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.01324, allocations: 28.2 kB / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.01326, allocations: 0 / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.273e-05/0.01331, allocations: 7.938 kB / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.01333, allocations: 8 kB / 1.008 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/0.01334, allocations: 0 / 1.008 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002663/0.0136, allocations: 237.2 kB / 1.008 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.0136, allocations: 0 / 1.008 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002634/0.01387, allocations: 51.78 kB / 1.008 GB, free: 14.77 MB / 0.9669 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.0001179/0.01398, allocations: 103.4 kB / 1.008 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002268/0.01421, allocations: 107.8 kB / 1.008 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01421, allocations: 0 / 1.008 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.341e-05/0.01425, allocations: 15.94 kB / 1.008 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.01448, allocations: 20.48 kB / 1.008 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008281/0.0153, allocations: 493.5 kB / 1.009 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.01551, allocations: 187.4 kB / 1.009 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.374e-05/0.0156, allocations: 41.55 kB / 1.009 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.656e-05/0.01565, allocations: 16.5 kB / 1.009 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of SimCode: time 3.9e-07/0.01565, allocations: 0 / 1.009 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of Templates: time 0.004976/0.02063, allocations: 1.193 MB / 1.01 GB, free: 12.57 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.417096074670553]