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.00172/0.00172, allocations: 115.2 kB / 17.13 MB, free: 6.027 MB / 14.72 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.002041/0.002041, allocations: 208.3 kB / 20.1 MB, free: 3.074 MB / 14.72 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.448/1.448, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.928/2.928, allocations: 0.49 GB / 0.7923 GB, free: 1.277 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 63.91 kB / 1.15 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9274/0.9295, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001925/0.9314, allocations: 0.8687 MB / 1.323 GB, free: 24.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002787/0.9317, allocations: 86.86 kB / 1.323 GB, free: 24.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.9318, allocations: 6.406 kB / 1.323 GB, free: 24.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.9319, allocations: 24.64 kB / 1.323 GB, free: 24.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.932, allocations: 13.83 kB / 1.323 GB, free: 24.4 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 7.115e-05/0.9321, allocations: 38.81 kB / 1.323 GB, free: 24.38 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.9323, allocations: 253.1 kB / 1.323 GB, free: 24.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.9326, allocations: 235.9 kB / 1.323 GB, free: 24.17 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.254e-05/0.9327, allocations: 133 kB / 1.324 GB, free: 24.1 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.9328, allocations: 140.1 kB / 1.324 GB, free: 24.02 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.854e-05/0.9329, allocations: 37.62 kB / 1.324 GB, free: 24.02 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.56e-05/0.9329, allocations: 31.69 kB / 1.324 GB, free: 24.02 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.075e-05/0.933, allocations: 86.19 kB / 1.324 GB, free: 23.96 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.583e-05/0.9331, allocations: 161.2 kB / 1.324 GB, free: 23.84 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.9334, allocations: 462.9 kB / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.9334, allocations: 0 / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9334, allocations: 0 / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.9334, allocations: 3.938 kB / 1.324 GB, free: 23.67 MB / 1.061 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.0005757/0.934, allocations: 0.6031 MB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.9341, allocations: 15.36 kB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.9341, allocations: 42.78 kB / 1.325 GB, free: 23.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.9345, allocations: 333.5 kB / 1.325 GB, free: 22.84 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.9345, allocations: 33.98 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.9345, allocations: 34.59 kB / 1.325 GB, free: 22.82 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004935/0.935, allocations: 395.1 kB / 1.326 GB, free: 22.66 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.935, allocations: 192 / 1.326 GB, free: 22.66 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.9351, allocations: 18.66 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.9351, allocations: 8.344 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.9355, allocations: 306.8 kB / 1.326 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.9367, allocations: 1.053 MB / 1.327 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.9369, allocations: 87.98 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.826e-05/0.9369, allocations: 45.34 kB / 1.327 GB, free: 21.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.937, allocations: 9.672 kB / 1.327 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.937, allocations: 35.34 kB / 1.327 GB, free: 21.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.937, allocations: 0 / 1.327 GB, free: 21.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003312/0.9373, allocations: 167.5 kB / 1.328 GB, free: 21.66 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.9373, allocations: 86.05 kB / 1.328 GB, free: 21.56 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.9379, allocations: 0.5074 MB / 1.328 GB, free: 21.34 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.9379, allocations: 26.48 kB / 1.328 GB, free: 21.3 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.9381, allocations: 211.7 kB / 1.328 GB, free: 21.13 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.9381, allocations: 18.78 kB / 1.328 GB, free: 21.11 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/0.9382, allocations: 50.75 kB / 1.328 GB, free: 21.08 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.9382, allocations: 344 kB / 1.329 GB, free: 20.76 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.9384, allocations: 69.14 kB / 1.329 GB, free: 20.73 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.9385, allocations: 91.73 kB / 1.329 GB, free: 20.69 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.9387, allocations: 114.2 kB / 1.329 GB, free: 20.63 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.9387, allocations: 0 / 1.329 GB, free: 20.63 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003616/0.9391, allocations: 218.7 kB / 1.329 GB, free: 20.52 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.9391, allocations: 4.625 kB / 1.329 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.9391, allocations: 5.609 kB / 1.329 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.9391, allocations: 1.531 kB / 1.329 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.9393, allocations: 30.11 kB / 1.329 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.9393, allocations: 5.359 kB / 1.329 GB, free: 20.51 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.9394, allocations: 33.7 kB / 1.329 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.9394, allocations: 6.062 kB / 1.329 GB, free: 20.49 MB / 1.061 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.0001997/0.9396, allocations: 202.4 kB / 1.329 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-05/0.9397, allocations: 34.95 kB / 1.329 GB, free: 20.32 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002058/0.9399, allocations: 114.9 kB / 1.33 GB, free: 20.25 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.9399, allocations: 4.547 kB / 1.33 GB, free: 20.24 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.9399, allocations: 0.9688 kB / 1.33 GB, free: 20.24 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.9399, allocations: 1.906 kB / 1.33 GB, free: 20.24 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000487/0.9404, allocations: 0.664 MB / 1.33 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.9404, allocations: 0 / 1.33 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.9404, allocations: 5.656 kB / 1.33 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.9404, allocations: 1.281 kB / 1.33 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.9404, allocations: 5.406 kB / 1.33 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.9404, allocations: 1.953 kB / 1.33 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.9404, allocations: 1.469 kB / 1.33 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.9405, allocations: 136.9 kB / 1.33 GB, free: 19.54 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-05/0.9406, allocations: 121.4 kB / 1.331 GB, free: 19.42 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.9406, allocations: 6.359 kB / 1.331 GB, free: 19.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.521e-05/0.9407, allocations: 6.766 kB / 1.331 GB, free: 19.41 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.9407, allocations: 12.84 kB / 1.331 GB, free: 19.4 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.9407, allocations: 2.656 kB / 1.331 GB, free: 19.4 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004176/0.9411, allocations: 389.6 kB / 1.331 GB, free: 19.23 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9411, allocations: 1 kB / 1.331 GB, free: 19.23 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002716/0.9414, allocations: 40.34 kB / 1.331 GB, free: 19.23 MB / 1.061 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 9.891e-05/0.9415, allocations: 100.1 kB / 1.331 GB, free: 19.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002175/0.9417, allocations: 107.5 kB / 1.331 GB, free: 19.1 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.9417, allocations: 0.8438 kB / 1.331 GB, free: 19.1 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.621e-05/0.9418, allocations: 12.2 kB / 1.331 GB, free: 19.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.942, allocations: 34.89 kB / 1.331 GB, free: 19.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007341/0.9428, allocations: 0.5391 MB / 1.332 GB, free: 18.71 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.943, allocations: 0.7903 MB / 1.332 GB, free: 18 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.847e-05/0.9431, allocations: 22.94 kB / 1.333 GB, free: 17.99 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.9431, allocations: 0 / 1.333 GB, free: 17.99 MB / 1.061 GB Notification: Performance of Templates: time 0.008232/0.9513, allocations: 3.811 MB / 1.336 GB, free: 17.61 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.576292477999232]