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.0008029/0.0008029, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008526/0.0008526, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.8716/0.8716, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.745/1.745, allocations: 389 MB / 0.633 GB, free: 12.69 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 0.9996 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/2.035e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001459/0.00148, allocations: 0.8275 MB / 1 GB, free: 12.68 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002363/0.001716, allocations: 91.69 kB / 1.001 GB, free: 12.59 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.726e-05/0.001793, allocations: 7.938 kB / 1.001 GB, free: 12.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.001902, allocations: 23.72 kB / 1.001 GB, free: 12.56 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.002022, allocations: 19.86 kB / 1.001 GB, free: 12.54 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 6.582e-05/0.002087, allocations: 47.89 kB / 1.001 GB, free: 12.49 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.002287, allocations: 259.3 kB / 1.001 GB, free: 12.24 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.002511, allocations: 170.9 kB / 1.001 GB, free: 12.07 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.002646, allocations: 191.6 kB / 1.001 GB, free: 11.88 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.002765, allocations: 123.6 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.002805, allocations: 32 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.002836, allocations: 32 kB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.533e-05/0.002892, allocations: 87.73 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.432e-05/0.002956, allocations: 91.7 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.00325, allocations: 470.4 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.003252, allocations: 4 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.143e-06/0.003253, allocations: 0 / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.003259, allocations: 0 / 1.002 GB, free: 11.05 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.0005009/0.00376, allocations: 0.5268 MB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.003796, allocations: 8.75 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.289e-05/0.003849, allocations: 70.72 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.003894, allocations: 44.66 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.004188, allocations: 277.7 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.004228, allocations: 33.02 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.004255, allocations: 36.38 kB / 1.003 GB, free: 10 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.004668, allocations: 408 kB / 1.003 GB, free: 9.59 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.004678, allocations: 192 / 1.003 GB, free: 9.59 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.004696, allocations: 12.38 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.004706, allocations: 12.12 kB / 1.003 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.005008, allocations: 299.8 kB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009339/0.005942, allocations: 0.9615 MB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.006049, allocations: 85.16 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.396e-05/0.006093, allocations: 45.8 kB / 1.005 GB, free: 8.109 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.006112, allocations: 3.984 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.006132, allocations: 46.5 kB / 1.005 GB, free: 8.051 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.006133, allocations: 0 / 1.005 GB, free: 8.051 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002367/0.00637, allocations: 161.4 kB / 1.005 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.006407, allocations: 85.05 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.006768, allocations: 0.5169 MB / 1.006 GB, free: 7.258 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.00678, allocations: 29.7 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.006884, allocations: 207.7 kB / 1.006 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.006895, allocations: 11.95 kB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.006948, allocations: 57.64 kB / 1.006 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.007031, allocations: 338.8 kB / 1.006 GB, free: 6.602 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.007102, allocations: 75.95 kB / 1.006 GB, free: 6.527 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.644e-05/0.007178, allocations: 89.56 kB / 1.006 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.007292, allocations: 121.5 kB / 1.006 GB, free: 6.309 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.007294, allocations: 0 / 1.006 GB, free: 6.309 MB / 0.9636 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000182/0.007476, allocations: 205.4 kB / 1.007 GB, free: 6.102 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.007491, allocations: 8 kB / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.007495, allocations: 0 / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.007507, allocations: 0 / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.902e-05/0.007606, allocations: 31.92 kB / 1.007 GB, free: 6.062 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.007611, allocations: 0 / 1.007 GB, free: 6.062 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.013e-05/0.007661, allocations: 43.56 kB / 1.007 GB, free: 6.02 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.007674, allocations: 12 kB / 1.007 GB, free: 6.008 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.0001358/0.00781, allocations: 208.1 kB / 1.007 GB, free: 5.797 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.007845, allocations: 32 kB / 1.007 GB, free: 5.766 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.007983, allocations: 110.1 kB / 1.007 GB, free: 5.648 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.007986, allocations: 3.938 kB / 1.007 GB, free: 5.645 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.00799, allocations: 0 / 1.007 GB, free: 5.645 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.007993, allocations: 7.938 kB / 1.007 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.008348, allocations: 0.6127 MB / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.008349, allocations: 0 / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.486e-05/0.008364, allocations: 4 kB / 1.008 GB, free: 4.957 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.008368, allocations: 7.938 kB / 1.008 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.008373, allocations: 0 / 1.008 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.008375, allocations: 0 / 1.008 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.008377, allocations: 7.938 kB / 1.008 GB, free: 4.941 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.483e-05/0.008462, allocations: 119.6 kB / 1.008 GB, free: 4.797 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.505e-05/0.008507, allocations: 59.75 kB / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.008525, allocations: 0 / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.195e-05/0.008557, allocations: 7.938 kB / 1.008 GB, free: 4.73 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.807e-05/0.008575, allocations: 7.984 kB / 1.008 GB, free: 4.723 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.008577, allocations: 0 / 1.008 GB, free: 4.723 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002605/0.008837, allocations: 395 kB / 1.008 GB, free: 4.34 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008837, allocations: 0 / 1.008 GB, free: 4.34 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000163/0.009, allocations: 43.95 kB / 1.008 GB, free: 4.297 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.000271/0.009271, allocations: 0.6616 MB / 1.009 GB, free: 3.598 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.009418, allocations: 111.8 kB / 1.009 GB, free: 3.488 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.00942, allocations: 0 / 1.009 GB, free: 3.488 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.494e-05/0.009435, allocations: 12 kB / 1.009 GB, free: 3.477 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.009619, allocations: 33.58 kB / 1.009 GB, free: 3.445 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.01172, allocations: 2.912 MB / 1.012 GB, free: 436 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.01183, allocations: 187.8 kB / 1.012 GB, free: 224 kB / 0.9636 GB Notification: Performance of simCode: alias equations: time 7.059e-05/0.0119, allocations: 54.94 kB / 1.012 GB, free: 172 kB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.254e-05/0.01199, allocations: 96.47 kB / 1.012 GB, free: 76 kB / 0.9636 GB Notification: Performance of SimCode: time 5.41e-07/0.01199, allocations: 0 / 1.012 GB, free: 76 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.02829, allocations: 6.458 MB / 1.019 GB, free: 9.793 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.7/6.728, allocations: 13.39 kB / 1.019 GB, free: 9.789 MB / 0.9792 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] 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: 10.658541991375387]