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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 113.9 kB / 18.94 MB, free: 2.789 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 190.2 kB / 22.23 MB, free: 5.227 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.9/2.9, allocations: 496 MB / 0.7835 GB, free: 33.66 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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=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 0.001843/0.001843, allocations: 73 kB / 1.138 GB, free: 34.11 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3334, allocations: 173.6 MB / 1.307 GB, free: 1.953 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002665/0.336, allocations: 0.872 MB / 1.308 GB, free: 1.082 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0003466/0.3364, allocations: 99.62 kB / 1.308 GB, free: 0.9844 MB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.3365, allocations: 4 kB / 1.308 GB, free: 0.9805 MB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.3367, allocations: 23.73 kB / 1.308 GB, free: 0.957 MB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.3368, allocations: 15.86 kB / 1.308 GB, free: 0.9414 MB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 8.685e-05/0.3369, allocations: 39.97 kB / 1.308 GB, free: 0.9023 MB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.0003449/0.3373, allocations: 251.5 kB / 1.309 GB, free: 0.6562 MB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.3376, allocations: 182.8 kB / 1.309 GB, free: 488 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.3377, allocations: 131.5 kB / 1.309 GB, free: 356 kB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.3379, allocations: 147.3 kB / 1.309 GB, free: 208 kB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.338, allocations: 32 kB / 1.309 GB, free: 176 kB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 4.443e-05/0.338, allocations: 32 kB / 1.309 GB, free: 144 kB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.3381, allocations: 83.78 kB / 1.309 GB, free: 60 kB / 0.9981 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.3383, allocations: 159.2 kB / 1.309 GB, free: 15.9 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000468/0.3388, allocations: 458 kB / 1.31 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3388, allocations: 0 / 1.31 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.372e-06/0.3388, allocations: 0 / 1.31 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.053e-06/0.3388, allocations: 0 / 1.31 GB, free: 15.45 MB / 1.014 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.0007134/0.3395, allocations: 0.5324 MB / 1.31 GB, free: 14.89 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3395, allocations: 12.03 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.3396, allocations: 36.7 kB / 1.31 GB, free: 14.84 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.34, allocations: 279.2 kB / 1.311 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/0.3401, allocations: 33.02 kB / 1.311 GB, free: 14.51 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.739e-05/0.3402, allocations: 36.38 kB / 1.311 GB, free: 14.47 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.3408, allocations: 392.2 kB / 1.311 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.3408, allocations: 192 / 1.311 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.3408, allocations: 23.88 kB / 1.311 GB, free: 14.05 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3408, allocations: 8 kB / 1.311 GB, free: 14.05 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000456/0.3413, allocations: 303.5 kB / 1.311 GB, free: 13.75 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.3427, allocations: 1.024 MB / 1.312 GB, free: 12.68 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.3429, allocations: 85.22 kB / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 6.732e-05/0.3429, allocations: 49.72 kB / 1.312 GB, free: 12.52 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3429, allocations: 8 kB / 1.312 GB, free: 12.51 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.343, allocations: 30.56 kB / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.343, allocations: 0 / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of matching and sorting (n=6): time 0.0003455/0.3433, allocations: 169.3 kB / 1.313 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.3434, allocations: 89.03 kB / 1.313 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.344, allocations: 0.5014 MB / 1.313 GB, free: 11.68 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.344, allocations: 25.7 kB / 1.313 GB, free: 11.65 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.3442, allocations: 215.7 kB / 1.313 GB, free: 11.44 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.3442, allocations: 15.88 kB / 1.313 GB, free: 11.42 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.3443, allocations: 57.66 kB / 1.314 GB, free: 11.36 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001691/0.3444, allocations: 346.8 kB / 1.314 GB, free: 11.01 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.3445, allocations: 63.95 kB / 1.314 GB, free: 10.95 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.3447, allocations: 87.39 kB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.3448, allocations: 113.6 kB / 1.314 GB, free: 10.74 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3448, allocations: 4 kB / 1.314 GB, free: 10.74 MB / 1.014 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003097/0.3451, allocations: 217.2 kB / 1.314 GB, free: 10.52 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3452, allocations: 4 kB / 1.314 GB, free: 10.52 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3452, allocations: 0 / 1.314 GB, free: 10.52 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3452, allocations: 4 kB / 1.314 GB, free: 10.51 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.3453, allocations: 27.92 kB / 1.314 GB, free: 10.48 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.3453, allocations: 7.984 kB / 1.314 GB, free: 10.48 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.387e-05/0.3454, allocations: 35.69 kB / 1.314 GB, free: 10.44 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.3454, allocations: 8 kB / 1.314 GB, free: 10.43 MB / 1.014 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.0002111/0.3456, allocations: 212 kB / 1.315 GB, free: 10.21 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.477e-05/0.3457, allocations: 35.8 kB / 1.315 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.3459, allocations: 118 kB / 1.315 GB, free: 10.05 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3459, allocations: 3.938 kB / 1.315 GB, free: 10.05 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3459, allocations: 4 kB / 1.315 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3459, allocations: 0 / 1.315 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.3466, allocations: 0.6322 MB / 1.315 GB, free: 9.348 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3466, allocations: 3.938 kB / 1.315 GB, free: 9.344 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.291e-05/0.3466, allocations: 7.984 kB / 1.315 GB, free: 9.336 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3466, allocations: 0 / 1.315 GB, free: 9.336 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.3466, allocations: 4 kB / 1.315 GB, free: 9.332 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3466, allocations: 0 / 1.315 GB, free: 9.332 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3466, allocations: 4.125 kB / 1.315 GB, free: 9.328 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.3467, allocations: 131.4 kB / 1.315 GB, free: 9.172 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.393e-05/0.3468, allocations: 47.75 kB / 1.316 GB, free: 9.125 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.3468, allocations: 4 kB / 1.316 GB, free: 9.121 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.201e-05/0.3469, allocations: 8 kB / 1.316 GB, free: 9.113 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.3469, allocations: 0 / 1.316 GB, free: 9.113 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.3469, allocations: 4 kB / 1.316 GB, free: 9.109 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0004246/0.3473, allocations: 395 kB / 1.316 GB, free: 8.73 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.3473, allocations: 0 / 1.316 GB, free: 8.73 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002333/0.3476, allocations: 43.89 kB / 1.316 GB, free: 8.688 MB / 1.014 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.0001135/0.3477, allocations: 100.2 kB / 1.316 GB, free: 8.578 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002198/0.3479, allocations: 103.9 kB / 1.316 GB, free: 8.477 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3479, allocations: 0 / 1.316 GB, free: 8.477 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 2.589e-05/0.3479, allocations: 19.94 kB / 1.316 GB, free: 8.457 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.3482, allocations: 29.59 kB / 1.316 GB, free: 8.426 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007744/0.349, allocations: 0.5094 MB / 1.317 GB, free: 7.879 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.3494, allocations: 0.7872 MB / 1.317 GB, free: 7.066 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 0.0001005/0.3495, allocations: 54.94 kB / 1.318 GB, free: 7.016 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.3496, allocations: 23.44 kB / 1.318 GB, free: 6.992 MB / 1.014 GB
Notification: Performance of SimCode: time 3e-07/0.3496, allocations: 4 kB / 1.318 GB, free: 6.988 MB / 1.014 GB
Notification: Performance of Templates: time 0.00564/0.3552, allocations: 2.075 MB / 1.32 GB, free: 4.926 MB / 1.014 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: 8.122389623895288]