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.0009809/0.0009809, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001029/0.001029, allocations: 169 kB / 24.28 MB, free: 280 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.021/1.021, allocations: 177.2 MB / 204.6 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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 1.915/1.915, allocations: 377.8 MB / 0.6239 GB, free: 8.566 MB / 0.5886 GB " [Timeout remaining time 178] 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.765e-06/2.765e-06, allocations: 0 / 0.8115 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.918e-05/3.194e-05, allocations: 2.969 kB / 0.8115 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.003095/0.003127, allocations: 0.8728 MB / 0.8124 GB, free: 1.238 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.000504/0.003631, allocations: 87.69 kB / 0.8125 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.00379, allocations: 10.12 kB / 0.8125 GB, free: 1.145 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.003996, allocations: 27.78 kB / 0.8125 GB, free: 1.117 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.004205, allocations: 11.81 kB / 0.8125 GB, free: 1.105 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.000132/0.004337, allocations: 43.95 kB / 0.8125 GB, free: 1.062 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.004707, allocations: 251.4 kB / 0.8128 GB, free: 0.8164 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003926/0.005099, allocations: 178.8 kB / 0.813 GB, free: 0.6367 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.005382, allocations: 192.9 kB / 0.8131 GB, free: 460 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.005618, allocations: 115.7 kB / 0.8133 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 7.88e-05/0.005697, allocations: 32 kB / 0.8133 GB, free: 312 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 4.981e-05/0.005747, allocations: 36 kB / 0.8133 GB, free: 276 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.00586, allocations: 92.98 kB / 0.8134 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.005999, allocations: 91.69 kB / 0.8135 GB, free: 92 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0005212/0.00652, allocations: 271 kB / 0.8138 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.006526, allocations: 0.625 kB / 0.8138 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.024e-06/0.006528, allocations: 0 / 0.8138 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.00654, allocations: 1.344 kB / 0.8138 GB, free: 15.82 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.0008525/0.007393, allocations: 0.6401 MB / 0.8144 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.007443, allocations: 8.031 kB / 0.8144 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003235/0.01068, allocations: 65.23 kB / 0.8144 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005033/0.01118, allocations: 275.2 kB / 0.8147 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.305e-05/0.01124, allocations: 33.03 kB / 0.8147 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.01129, allocations: 32.38 kB / 0.8148 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005553/0.01185, allocations: 278.6 kB / 0.815 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.01186, allocations: 192 / 0.815 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.0119, allocations: 18.28 kB / 0.8151 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.01191, allocations: 8.375 kB / 0.8151 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.0122, allocations: 123.4 kB / 0.8152 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.01344, allocations: 0.8868 MB / 0.816 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.01358, allocations: 82.83 kB / 0.8161 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.047e-05/0.01362, allocations: 19.91 kB / 0.8161 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.01364, allocations: 4.719 kB / 0.8162 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.01367, allocations: 41.47 kB / 0.8162 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.01367, allocations: 0.5312 kB / 0.8162 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0002659/0.01394, allocations: 78.91 kB / 0.8163 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.01399, allocations: 81.11 kB / 0.8163 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/0.01438, allocations: 391.9 kB / 0.8167 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.01439, allocations: 33.7 kB / 0.8168 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.01456, allocations: 271.6 kB / 0.817 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.01458, allocations: 13.28 kB / 0.817 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.01471, allocations: 87.34 kB / 0.8171 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.01487, allocations: 0.5196 MB / 0.8176 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.89e-05/0.01494, allocations: 19.89 kB / 0.8176 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.957e-05/0.01501, allocations: 48.52 kB / 0.8177 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.01513, allocations: 71.23 kB / 0.8177 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01513, allocations: 0 / 0.8177 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002276/0.01536, allocations: 130.4 kB / 0.8179 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.01538, allocations: 4 kB / 0.8179 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01539, allocations: 0.7812 kB / 0.8179 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.01541, allocations: 8 kB / 0.8179 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.01555, allocations: 33.2 kB / 0.8179 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.01556, allocations: 4 kB / 0.8179 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.565e-05/0.01562, allocations: 15.83 kB / 0.8179 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.01564, allocations: 8.375 kB / 0.8179 GB, free: 11.29 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.0001349/0.01577, allocations: 184.6 kB / 0.8181 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.867e-05/0.01583, allocations: 23.8 kB / 0.8181 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000194/0.01602, allocations: 91.64 kB / 0.8182 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.01603, allocations: 0 / 0.8182 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01603, allocations: 0 / 0.8182 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.01603, allocations: 5.812 kB / 0.8182 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/0.01655, allocations: 0.7249 MB / 0.8189 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.01655, allocations: 0 / 0.8189 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.668e-05/0.01658, allocations: 6.531 kB / 0.8189 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.01658, allocations: 0 / 0.8189 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.01659, allocations: 4 kB / 0.819 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.0166, allocations: 3.938 kB / 0.819 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.0166, allocations: 7.875 kB / 0.819 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.01673, allocations: 127.4 kB / 0.8191 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.01676, allocations: 24.34 kB / 0.8191 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.01678, allocations: 1.469 kB / 0.8191 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.398e-05/0.01683, allocations: 7.938 kB / 0.8191 GB, free: 9.984 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.01685, allocations: 8 kB / 0.8191 GB, free: 9.977 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.01686, allocations: 0 / 0.8191 GB, free: 9.977 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001876/0.01705, allocations: 221.8 kB / 0.8193 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01705, allocations: 3.938 kB / 0.8193 GB, free: 9.754 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002966/0.01734, allocations: 57.12 kB / 0.8194 GB, free: 9.699 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.0001199/0.01746, allocations: 99.19 kB / 0.8195 GB, free: 9.59 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001702/0.01763, allocations: 67.25 kB / 0.8196 GB, free: 9.523 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01763, allocations: 0 / 0.8196 GB, free: 9.523 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.904e-05/0.01766, allocations: 20.94 kB / 0.8196 GB, free: 9.5 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.01792, allocations: 38.33 kB / 0.8196 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.01859, allocations: 449.8 kB / 0.82 GB, free: 8.984 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.603e-05/0.01866, allocations: 87.97 kB / 0.8201 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.061e-05/0.01875, allocations: 37.59 kB / 0.8202 GB, free: 8.836 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.01879, allocations: 16.5 kB / 0.8202 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.01879, allocations: 0 / 0.8202 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of Templates: time 0.004529/0.02332, allocations: 1.211 MB / 0.8214 GB, free: 7.648 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=240 -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.260623825946823]