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.000844/0.000844, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0007807/0.0007807, allocations: 174.3 kB / 23.21 MB, free: 1.355 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.9039/0.9039, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.782/1.782, allocations: 389 MB / 0.6338 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] 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.937e-06/3.937e-06, allocations: 0 / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.995e-05/3.388e-05, allocations: 10.22 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001647/0.001681, allocations: 0.8289 MB / 1.002 GB, free: 12.2 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002966/0.001977, allocations: 99.5 kB / 1.002 GB, free: 12.1 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.29e-05/0.00207, allocations: 4 kB / 1.002 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.002195, allocations: 31.72 kB / 1.002 GB, free: 12.06 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.002341, allocations: 19.86 kB / 1.002 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 7.721e-05/0.002418, allocations: 31.97 kB / 1.002 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002339/0.002652, allocations: 259.4 kB / 1.002 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.002906, allocations: 166.9 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.003073, allocations: 191.6 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.003206, allocations: 127.6 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.6e-05/0.003252, allocations: 32 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 2.767e-05/0.00328, allocations: 32 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.164e-05/0.003342, allocations: 83.73 kB / 1.003 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.076e-05/0.003412, allocations: 99.69 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.003776, allocations: 470.4 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.003781, allocations: 4 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.455e-06/0.003783, allocations: 0 / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 1.36e-05/0.003797, allocations: 0 / 1.003 GB, free: 10.57 MB / 0.9636 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.0008688/0.004666, allocations: 0.5231 MB / 1.004 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.8e-05/0.004734, allocations: 8.75 kB / 1.004 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.159e-05/0.004825, allocations: 40.7 kB / 1.004 GB, free: 9.969 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.0052, allocations: 281.6 kB / 1.004 GB, free: 9.664 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.005256, allocations: 41.02 kB / 1.004 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.005287, allocations: 32.38 kB / 1.004 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004955/0.005783, allocations: 404 kB / 1.005 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.005795, allocations: 192 / 1.005 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.00582, allocations: 16.38 kB / 1.005 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.00583, allocations: 8.375 kB / 1.005 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.006164, allocations: 299.7 kB / 1.005 GB, free: 8.871 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.007258, allocations: 0.8413 MB / 1.006 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.007384, allocations: 85.22 kB / 1.006 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.661e-05/0.007431, allocations: 45.8 kB / 1.006 GB, free: 7.84 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.007457, allocations: 11.92 kB / 1.006 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.00748, allocations: 38.56 kB / 1.006 GB, free: 7.781 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.007481, allocations: 3.938 kB / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002671/0.007748, allocations: 149.5 kB / 1.006 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.007791, allocations: 81.11 kB / 1.006 GB, free: 7.527 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.008042, allocations: 345.5 kB / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.008056, allocations: 25.7 kB / 1.006 GB, free: 7.156 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.008156, allocations: 212.4 kB / 1.007 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.008168, allocations: 11.91 kB / 1.007 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.696e-05/0.008245, allocations: 81.62 kB / 1.007 GB, free: 6.844 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.886e-05/0.008334, allocations: 334.7 kB / 1.007 GB, free: 6.508 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.00841, allocations: 71.95 kB / 1.007 GB, free: 6.438 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.966e-05/0.00849, allocations: 89.56 kB / 1.007 GB, free: 6.344 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.008601, allocations: 113.6 kB / 1.007 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.008603, allocations: 0 / 1.007 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001895/0.008793, allocations: 197.4 kB / 1.007 GB, free: 6.027 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.00881, allocations: 5.719 kB / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.008816, allocations: 0 / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.008831, allocations: 4 kB / 1.007 GB, free: 6.02 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.008944, allocations: 27.98 kB / 1.008 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.00895, allocations: 192 / 1.008 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.409e-05/0.008994, allocations: 19.84 kB / 1.008 GB, free: 5.973 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.00901, allocations: 19.88 kB / 1.008 GB, free: 5.953 MB / 0.9636 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.000158/0.009168, allocations: 207.6 kB / 1.008 GB, free: 5.742 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.009198, allocations: 15.91 kB / 1.008 GB, free: 5.727 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.009361, allocations: 108.6 kB / 1.008 GB, free: 5.609 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.009363, allocations: 4 kB / 1.008 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.009368, allocations: 0 / 1.008 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.009372, allocations: 4.062 kB / 1.008 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.009733, allocations: 0.5589 MB / 1.008 GB, free: 4.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.009736, allocations: 0 / 1.008 GB, free: 4.992 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.967e-05/0.009756, allocations: 7.938 kB / 1.008 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.009758, allocations: 0 / 1.008 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.009767, allocations: 4 kB / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.009772, allocations: 7.922 kB / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.009773, allocations: 0 / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.023e-05/0.009864, allocations: 119.6 kB / 1.009 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.2e-05/0.009886, allocations: 27.98 kB / 1.009 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.0099, allocations: 0 / 1.009 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.941e-05/0.009929, allocations: 7.938 kB / 1.009 GB, free: 4.793 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.009952, allocations: 15.92 kB / 1.009 GB, free: 4.777 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.009955, allocations: 0 / 1.009 GB, free: 4.777 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001562/0.01011, allocations: 237.2 kB / 1.009 GB, free: 4.543 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01011, allocations: 0 / 1.009 GB, free: 4.543 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001741/0.01029, allocations: 59.73 kB / 1.009 GB, free: 4.484 MB / 0.9636 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.0001018/0.01039, allocations: 95.25 kB / 1.009 GB, free: 4.383 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001634/0.01055, allocations: 103.9 kB / 1.009 GB, free: 4.281 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01055, allocations: 0 / 1.009 GB, free: 4.281 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.617e-05/0.01057, allocations: 15.94 kB / 1.009 GB, free: 4.266 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.01076, allocations: 16.88 kB / 1.009 GB, free: 4.25 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005674/0.01132, allocations: 0.5188 MB / 1.01 GB, free: 3.691 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.01145, allocations: 179.4 kB / 1.01 GB, free: 3.492 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.0115, allocations: 24.44 kB / 1.01 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of SimCode: time 6.91e-07/0.0115, allocations: 0 / 1.01 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of Templates: time 0.004007/0.01551, allocations: 3.194 MB / 1.013 GB, free: 280 kB / 0.9636 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: 6.867070911452174]