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.0008694/0.0008694, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0008316/0.0008316, allocations: 173.9 kB / 23.21 MB, free: 1.352 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 0.8619/0.8619, allocations: 177.1 MB / 203.5 MB, free: 5.688 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.697/1.697, allocations: 377.8 MB / 0.6228 GB, free: 8.656 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 1.964e-06/1.964e-06, allocations: 0 / 0.9822 GB, free: 2.113 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.877e-05/2.073e-05, allocations: 6.219 kB / 0.9822 GB, free: 2.105 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001269/0.00129, allocations: 0.8437 MB / 0.983 GB, free: 1.262 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002359/0.001525, allocations: 91.62 kB / 0.9831 GB, free: 1.172 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.0016, allocations: 7.938 kB / 0.9831 GB, free: 1.164 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.00171, allocations: 23.78 kB / 0.9831 GB, free: 1.141 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.001831, allocations: 15.81 kB / 0.9831 GB, free: 1.125 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 6.168e-05/0.001893, allocations: 47.95 kB / 0.9832 GB, free: 1.078 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.002094, allocations: 255.4 kB / 0.9834 GB, free: 0.8281 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.002319, allocations: 166.9 kB / 0.9836 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.002447, allocations: 191.6 kB / 0.9838 GB, free: 484 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.002559, allocations: 119.7 kB / 0.9839 GB, free: 364 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.002603, allocations: 32 kB / 0.9839 GB, free: 332 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.505e-05/0.002628, allocations: 32 kB / 0.9839 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.902e-05/0.002687, allocations: 95.67 kB / 0.984 GB, free: 204 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 6.193e-05/0.002749, allocations: 91.75 kB / 0.9841 GB, free: 112 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.00304, allocations: 470.4 kB / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003042, allocations: 4 kB / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.032e-06/0.003043, allocations: 0 / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.003048, allocations: 0 / 0.9846 GB, free: 15.64 MB / 0.948 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.0004705/0.003519, allocations: 0.5284 MB / 0.9851 GB, free: 15.08 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.003554, allocations: 12.03 kB / 0.9851 GB, free: 15.07 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.003601, allocations: 36.7 kB / 0.9851 GB, free: 15.04 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.003876, allocations: 274.4 kB / 0.9854 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.003916, allocations: 33.03 kB / 0.9854 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.003943, allocations: 32.38 kB / 0.9855 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003843/0.004327, allocations: 404.2 kB / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.004338, allocations: 192 / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.00436, allocations: 20.36 kB / 0.9859 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.004367, allocations: 8.375 kB / 0.9859 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.004656, allocations: 299.5 kB / 0.9862 GB, free: 13.95 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007726/0.005429, allocations: 0.8378 MB / 0.987 GB, free: 13.08 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.005533, allocations: 89.16 kB / 0.9871 GB, free: 12.97 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.363e-05/0.005577, allocations: 49.78 kB / 0.9871 GB, free: 12.92 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.005593, allocations: 0 / 0.9871 GB, free: 12.92 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.005613, allocations: 38.55 kB / 0.9872 GB, free: 12.87 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 6.62e-07/0.005614, allocations: 7.938 kB / 0.9872 GB, free: 12.86 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002252/0.005839, allocations: 153.5 kB / 0.9873 GB, free: 12.71 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.005874, allocations: 81.05 kB / 0.9874 GB, free: 12.61 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.006095, allocations: 345.5 kB / 0.9877 GB, free: 12.27 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.006107, allocations: 29.7 kB / 0.9877 GB, free: 12.23 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.006198, allocations: 212.4 kB / 0.9879 GB, free: 12.02 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.183e-05/0.00621, allocations: 11.89 kB / 0.988 GB, free: 12.01 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.006272, allocations: 73.69 kB / 0.988 GB, free: 11.93 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.00635, allocations: 338.8 kB / 0.9883 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.855e-05/0.006419, allocations: 63.95 kB / 0.9884 GB, free: 11.53 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.396e-05/0.006493, allocations: 89.66 kB / 0.9885 GB, free: 11.44 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.006596, allocations: 121.5 kB / 0.9886 GB, free: 11.31 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.006598, allocations: 0 / 0.9886 GB, free: 11.31 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001726/0.006771, allocations: 193.4 kB / 0.9888 GB, free: 11.12 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.006782, allocations: 8 kB / 0.9888 GB, free: 11.11 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.006786, allocations: 0 / 0.9888 GB, free: 11.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.006798, allocations: 0 / 0.9888 GB, free: 11.11 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.974e-05/0.006888, allocations: 31.92 kB / 0.9888 GB, free: 11.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.006892, allocations: 0 / 0.9888 GB, free: 11.08 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.272e-05/0.006924, allocations: 19.89 kB / 0.9889 GB, free: 11.06 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.006936, allocations: 4 kB / 0.9889 GB, free: 11.05 MB / 0.948 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.0001239/0.00706, allocations: 207.7 kB / 0.9891 GB, free: 10.84 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.007089, allocations: 23.8 kB / 0.9891 GB, free: 10.82 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.00736, allocations: 100.7 kB / 0.9892 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-06/0.007362, allocations: 0 / 0.9892 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.007366, allocations: 0 / 0.9892 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-06/0.007369, allocations: 3.984 kB / 0.9892 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.007665, allocations: 0.5664 MB / 0.9897 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.007666, allocations: 0 / 0.9897 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.348e-05/0.007679, allocations: 4 kB / 0.9897 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.007682, allocations: 4 kB / 0.9897 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.007689, allocations: 4 kB / 0.9897 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.007691, allocations: 3.938 kB / 0.9897 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.007694, allocations: 7.938 kB / 0.9898 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.374e-05/0.007767, allocations: 111.6 kB / 0.9899 GB, free: 9.93 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.878e-05/0.007786, allocations: 24.25 kB / 0.9899 GB, free: 9.906 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.0078, allocations: 8.312 kB / 0.9899 GB, free: 9.898 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.252e-05/0.007823, allocations: 3.938 kB / 0.9899 GB, free: 9.895 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.00784, allocations: 11.88 kB / 0.9899 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.007842, allocations: 4 kB / 0.9899 GB, free: 9.879 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001437/0.007986, allocations: 237.2 kB / 0.9901 GB, free: 9.645 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007986, allocations: 0 / 0.9901 GB, free: 9.645 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001579/0.008144, allocations: 63.67 kB / 0.9902 GB, free: 9.582 MB / 0.948 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 7.061e-05/0.008214, allocations: 103.2 kB / 0.9903 GB, free: 9.469 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001381/0.008352, allocations: 99.89 kB / 0.9904 GB, free: 9.371 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.008355, allocations: 8 kB / 0.9904 GB, free: 9.363 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.008372, allocations: 19.92 kB / 0.9904 GB, free: 9.344 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.008527, allocations: 23.02 kB / 0.9904 GB, free: 9.324 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004595/0.008987, allocations: 0.5034 MB / 0.9909 GB, free: 8.777 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.009095, allocations: 187.4 kB / 0.9911 GB, free: 8.578 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.009134, allocations: 16.5 kB / 0.9911 GB, free: 8.562 MB / 0.948 GB Notification: Performance of SimCode: time 6.21e-07/0.009135, allocations: 0 / 0.9911 GB, free: 8.562 MB / 0.948 GB Notification: Performance of Templates: time 0.003115/0.01225, allocations: 3.194 MB / 0.9942 GB, free: 5.371 MB / 0.948 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: 6.41311804112047]