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.0009793/0.0009793, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.0009892/0.0009892, allocations: 161 kB / 24.17 MB, free: 332 kB / 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.06/1.06, allocations: 177.2 MB / 204.6 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 2.007/2.007, allocations: 377.9 MB / 0.624 GB, free: 8.391 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 5.731e-06/5.731e-06, allocations: 4 kB / 0.76 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.31e-05/2.883e-05, allocations: 2.312 kB / 0.7601 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002384/0.002413, allocations: 0.9216 MB / 0.761 GB, free: 5.711 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0003401/0.002753, allocations: 95.56 kB / 0.761 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.742e-05/0.002851, allocations: 4.531 kB / 0.761 GB, free: 5.613 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.002995, allocations: 17.88 kB / 0.7611 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.00315, allocations: 21.17 kB / 0.7611 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 9.642e-05/0.003247, allocations: 41.25 kB / 0.7611 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.003573, allocations: 260.8 kB / 0.7614 GB, free: 5.305 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.003873, allocations: 178.8 kB / 0.7615 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003146/0.004187, allocations: 228.7 kB / 0.7618 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.004323, allocations: 99.7 kB / 0.7619 GB, free: 4.809 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.943e-05/0.004373, allocations: 28 kB / 0.7619 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 3.762e-05/0.00441, allocations: 33.88 kB / 0.7619 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.801e-05/0.004488, allocations: 79.75 kB / 0.762 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 9.213e-05/0.004581, allocations: 87.7 kB / 0.7621 GB, free: 4.586 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.00488, allocations: 251 kB / 0.7623 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.004883, allocations: 0 / 0.7623 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.302e-06/0.004884, allocations: 0 / 0.7623 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.00489, allocations: 0.75 kB / 0.7623 GB, free: 4.34 MB / 0.7136 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.0005579/0.005448, allocations: 0.4919 MB / 0.7628 GB, free: 3.82 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.005487, allocations: 8.781 kB / 0.7628 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.011e-05/0.005577, allocations: 52.89 kB / 0.7629 GB, free: 3.762 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.005905, allocations: 228.8 kB / 0.7631 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.005956, allocations: 33.03 kB / 0.7631 GB, free: 3.48 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.005994, allocations: 28.38 kB / 0.7631 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.006385, allocations: 263.8 kB / 0.7634 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.006399, allocations: 4.188 kB / 0.7634 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.006424, allocations: 8.375 kB / 0.7634 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.006436, allocations: 9.812 kB / 0.7634 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.006621, allocations: 109 kB / 0.7635 GB, free: 3.051 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009335/0.007555, allocations: 0.6243 MB / 0.7641 GB, free: 2.402 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.725e-05/0.007652, allocations: 58.52 kB / 0.7642 GB, free: 2.328 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.885e-05/0.007681, allocations: 21.7 kB / 0.7642 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.0077, allocations: 1.25 kB / 0.7642 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.007725, allocations: 34.56 kB / 0.7642 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.803e-06/0.007727, allocations: 0 / 0.7642 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001863/0.007914, allocations: 62.3 kB / 0.7643 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.007955, allocations: 85.09 kB / 0.7644 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.008212, allocations: 283.9 kB / 0.7646 GB, free: 1.805 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.008229, allocations: 25.7 kB / 0.7647 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.00835, allocations: 192.8 kB / 0.7648 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.008367, allocations: 19.84 kB / 0.7649 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.008473, allocations: 73.61 kB / 0.7649 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.008603, allocations: 334.7 kB / 0.7653 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.863e-05/0.008652, allocations: 19.92 kB / 0.7653 GB, free: 1.129 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.424e-05/0.008706, allocations: 33.69 kB / 0.7653 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.997e-05/0.008796, allocations: 48.59 kB / 0.7654 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.008799, allocations: 0 / 0.7654 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001897/0.008989, allocations: 97.52 kB / 0.7654 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.009009, allocations: 8 kB / 0.7655 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.009016, allocations: 0 / 0.7655 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.009034, allocations: 0 / 0.7655 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.009182, allocations: 31.98 kB / 0.7655 GB, free: 0.8984 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.009188, allocations: 4 kB / 0.7655 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.287e-05/0.009251, allocations: 17.39 kB / 0.7655 GB, free: 0.8789 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.00927, allocations: 4 kB / 0.7655 GB, free: 0.875 MB / 0.7136 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 (idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y,idxFirTru.booToInt[6].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[1].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.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.0001546/0.009424, allocations: 139.2 kB / 0.7656 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.00948, allocations: 12.83 kB / 0.7657 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.009677, allocations: 91.33 kB / 0.7657 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.009681, allocations: 4 kB / 0.7657 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.009684, allocations: 0 / 0.7657 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.009688, allocations: 0 / 0.7657 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.01012, allocations: 448.5 kB / 0.7662 GB, free: 144 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.01013, allocations: 0 / 0.7662 GB, free: 144 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.018e-05/0.01016, allocations: 11.11 kB / 0.7662 GB, free: 136 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.01016, allocations: 4 kB / 0.7662 GB, free: 132 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.01017, allocations: 0 / 0.7662 GB, free: 132 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.01017, allocations: 0 / 0.7662 GB, free: 132 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.01018, allocations: 7.938 kB / 0.7662 GB, free: 124 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.01031, allocations: 99.98 kB / 0.7663 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.664e-05/0.01034, allocations: 11.91 kB / 0.7663 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.01036, allocations: 5.812 kB / 0.7663 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.658e-05/0.0104, allocations: 0 / 0.7663 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.568e-05/0.01042, allocations: 15.91 kB / 0.7663 GB, free: 15.96 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.01043, allocations: 0 / 0.7663 GB, free: 15.96 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001022/0.01053, allocations: 82.78 kB / 0.7664 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/0.01053, allocations: 2.438 kB / 0.7664 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000249/0.01078, allocations: 59.67 kB / 0.7665 GB, free: 15.82 MB / 0.7292 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.0001351/0.01091, allocations: 84.41 kB / 0.7665 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001309/0.01104, allocations: 61.08 kB / 0.7666 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.01105, allocations: 0 / 0.7666 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.702e-05/0.01107, allocations: 15.3 kB / 0.7666 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.01125, allocations: 33.47 kB / 0.7666 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006277/0.01188, allocations: 443.5 kB / 0.7671 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.555e-05/0.01195, allocations: 87.95 kB / 0.7672 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.041e-05/0.01201, allocations: 15.08 kB / 0.7672 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.01209, allocations: 75.36 kB / 0.7672 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of SimCode: time 7.72e-07/0.0121, allocations: 0 / 0.7672 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of Templates: time 0.003678/0.01577, allocations: 1.328 MB / 0.7685 GB, free: 13.71 MB / 0.7292 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.111825158353895]