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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 111.6 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 193.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 245.7 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.968/2.968, allocations: 489.3 MB / 0.7687 GB, free: 3.766 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002016/0.002016, allocations: 71.89 kB / 1.103 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9315/0.9335, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.00189/0.9355, allocations: 0.8705 MB / 1.263 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002251/0.9357, allocations: 87.36 kB / 1.264 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.713e-05/0.9358, allocations: 3.438 kB / 1.264 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.9359, allocations: 25.45 kB / 1.264 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.936, allocations: 17.94 kB / 1.264 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 6.732e-05/0.9361, allocations: 39.27 kB / 1.264 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.9364, allocations: 254 kB / 1.264 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.9367, allocations: 287 kB / 1.264 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.9369, allocations: 135.7 kB / 1.264 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.937, allocations: 139.5 kB / 1.264 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.635e-05/0.9371, allocations: 32.25 kB / 1.264 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.047e-05/0.9371, allocations: 33.28 kB / 1.264 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.96e-05/0.9372, allocations: 86.58 kB / 1.265 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.9373, allocations: 154.3 kB / 1.265 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.9378, allocations: 468 kB / 1.265 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9378, allocations: 3.938 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.894e-06/0.9378, allocations: 0.9062 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.9378, allocations: 3.938 kB / 1.265 GB, free: 6.586 MB / 0.9981 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.0005556/0.9383, allocations: 0.6053 MB / 1.266 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.9384, allocations: 9.438 kB / 1.266 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.176e-05/0.9385, allocations: 40.19 kB / 1.266 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.9388, allocations: 328.5 kB / 1.266 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.9389, allocations: 33.41 kB / 1.266 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.9389, allocations: 33.66 kB / 1.266 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.9395, allocations: 397.8 kB / 1.267 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.9396, allocations: 8.891 kB / 1.267 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.9396, allocations: 15.25 kB / 1.267 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.9396, allocations: 7.875 kB / 1.267 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/0.9401, allocations: 310.3 kB / 1.267 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.9413, allocations: 1.055 MB / 1.268 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.9415, allocations: 95.25 kB / 1.268 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.008e-05/0.9416, allocations: 49.19 kB / 1.268 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.9416, allocations: 1.641 kB / 1.268 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.9416, allocations: 36.25 kB / 1.268 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.9416, allocations: 0 / 1.268 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003103/0.9419, allocations: 168 kB / 1.268 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.942, allocations: 90.73 kB / 1.268 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005551/0.9425, allocations: 0.5041 MB / 1.269 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.976e-06/0.9425, allocations: 26.67 kB / 1.269 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.9426, allocations: 205 kB / 1.269 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.216e-05/0.9427, allocations: 16 kB / 1.269 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.105e-05/0.9427, allocations: 57.45 kB / 1.269 GB, free: 4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.9428, allocations: 343.6 kB / 1.269 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.9429, allocations: 68.88 kB / 1.269 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.943, allocations: 94.41 kB / 1.27 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.9432, allocations: 120.2 kB / 1.27 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.9432, allocations: 0 / 1.27 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002706/0.9435, allocations: 211.2 kB / 1.27 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.9435, allocations: 9.141 kB / 1.27 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.9435, allocations: 0 / 1.27 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.9435, allocations: 1.625 kB / 1.27 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.9437, allocations: 27.78 kB / 1.27 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.9437, allocations: 7.156 kB / 1.27 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.9437, allocations: 37.36 kB / 1.27 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.9438, allocations: 5.781 kB / 1.27 GB, free: 3.402 MB / 0.9981 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.0001524/0.9439, allocations: 211.2 kB / 1.27 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.944, allocations: 29.78 kB / 1.27 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.9442, allocations: 121.5 kB / 1.27 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.9442, allocations: 5.625 kB / 1.27 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.9442, allocations: 0.875 kB / 1.27 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.9442, allocations: 0 / 1.27 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004057/0.9446, allocations: 0.657 MB / 1.271 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.9446, allocations: 1.344 kB / 1.271 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.112e-05/0.9447, allocations: 9.391 kB / 1.271 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.9447, allocations: 0.9375 kB / 1.271 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.9447, allocations: 1.531 kB / 1.271 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.9447, allocations: 4.359 kB / 1.271 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9447, allocations: 2.219 kB / 1.271 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.9448, allocations: 134.2 kB / 1.271 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/0.9449, allocations: 123.8 kB / 1.271 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.9449, allocations: 3.047 kB / 1.271 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.389e-05/0.945, allocations: 6.75 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.961e-05/0.945, allocations: 6.391 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.945, allocations: 2.781 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004024/0.9454, allocations: 388.8 kB / 1.272 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9454, allocations: 0 / 1.272 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002433/0.9457, allocations: 44.27 kB / 1.272 GB, free: 2.145 MB / 0.9981 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 8.554e-05/0.9458, allocations: 103.1 kB / 1.272 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002082/0.946, allocations: 106.8 kB / 1.272 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.946, allocations: 4.906 kB / 1.272 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.654e-05/0.946, allocations: 14.27 kB / 1.272 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.9463, allocations: 32.56 kB / 1.272 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006617/0.947, allocations: 0.5405 MB / 1.272 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.9472, allocations: 0.7851 MB / 1.273 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.9472, allocations: 22.62 kB / 1.273 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.9472, allocations: 1.094 kB / 1.273 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of Templates: time 0.005966/0.9532, allocations: 3.825 MB / 1.277 GB, free: 0.5234 MB / 0.9981 GB " [Timeout remaining time 299] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.214767819968984]