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.001771/0.001771, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002258/0.002258, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.529/1.529, allocations: 230.6 MB / 256 MB, free: 7.992 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 3.319/3.319, allocations: 0.49 GB / 0.7951 GB, free: 33.42 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [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.00286/0.00286, allocations: 65.83 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3598, allocations: 176.1 MB / 1.326 GB, free: 1.977 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002589/0.3624, allocations: 0.8897 MB / 1.327 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003062/0.3627, allocations: 83.7 kB / 1.327 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.3628, allocations: 7.938 kB / 1.327 GB, free: 1 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.363, allocations: 23.78 kB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.3631, allocations: 15.88 kB / 1.327 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.929e-05/0.3632, allocations: 39.95 kB / 1.327 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000331/0.3635, allocations: 259.5 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.3639, allocations: 175.1 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.364, allocations: 131.5 kB / 1.327 GB, free: 372 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.3642, allocations: 143.3 kB / 1.328 GB, free: 228 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.3642, allocations: 35.94 kB / 1.328 GB, free: 192 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.644e-05/0.3643, allocations: 36 kB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.927e-05/0.3644, allocations: 87.7 kB / 1.328 GB, free: 68 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.3645, allocations: 151.2 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.365, allocations: 466 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.365, allocations: 4 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.874e-06/0.365, allocations: 4 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.365, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 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.0007122/0.3657, allocations: 0.5246 MB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3658, allocations: 8.031 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.578e-05/0.3659, allocations: 70.72 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.778e-05/0.3659, allocations: 44.66 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.3664, allocations: 267.2 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.005e-05/0.3664, allocations: 37.03 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.3665, allocations: 32.38 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.3671, allocations: 400.2 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3671, allocations: 3.938 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.3671, allocations: 19.98 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3672, allocations: 8 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.3676, allocations: 307.3 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.3691, allocations: 1.024 MB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.3693, allocations: 89.16 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.245e-05/0.3693, allocations: 45.78 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3693, allocations: 0 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.3694, allocations: 34.56 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 9.668e-06/0.3694, allocations: 0 / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.000346/0.3697, allocations: 169.3 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.3698, allocations: 81.11 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005967/0.3704, allocations: 0.5053 MB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.3704, allocations: 29.64 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.3706, allocations: 211.7 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.3706, allocations: 23.78 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.3707, allocations: 57.69 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3709, allocations: 342.8 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.371, allocations: 67.95 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.3711, allocations: 91 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.3713, allocations: 109.7 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3713, allocations: 0 / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003101/0.3716, allocations: 213.3 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3716, allocations: 8 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3716, allocations: 4 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.3716, allocations: 4.125 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.3718, allocations: 31.92 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3718, allocations: 3.938 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.285e-05/0.3719, allocations: 39.73 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3719, allocations: 4 kB / 1.333 GB, free: 10.36 MB / 1.029 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.0002066/0.3721, allocations: 203.8 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.3722, allocations: 31.77 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000213/0.3724, allocations: 118.1 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3724, allocations: 3.938 kB / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3724, allocations: 384 / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3724, allocations: 0 / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006158/0.373, allocations: 0.636 MB / 1.334 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.373, allocations: 4 kB / 1.334 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.162e-05/0.373, allocations: 4 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.373, allocations: 3.984 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-06/0.373, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.373, allocations: 4 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.373, allocations: 0 / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.3732, allocations: 135.5 kB / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/0.3733, allocations: 47.75 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.3733, allocations: 4 kB / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.477e-05/0.3734, allocations: 7.984 kB / 1.334 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.595e-05/0.3734, allocations: 4 kB / 1.334 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.3734, allocations: 4 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004319/0.3738, allocations: 395 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3738, allocations: 0 / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002343/0.3741, allocations: 39.94 kB / 1.335 GB, free: 8.629 MB / 1.029 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.0004957/0.3746, allocations: 0.6771 MB / 1.335 GB, free: 7.91 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.3748, allocations: 95.89 kB / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3748, allocations: 0 / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.871e-05/0.3748, allocations: 19.92 kB / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.3751, allocations: 33.53 kB / 1.335 GB, free: 7.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.3784, allocations: 2.915 MB / 1.338 GB, free: 4.75 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.3789, allocations: 0.7907 MB / 1.339 GB, free: 3.934 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.379, allocations: 58.92 kB / 1.339 GB, free: 3.875 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3791, allocations: 99.41 kB / 1.339 GB, free: 3.777 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3791, allocations: 0 / 1.339 GB, free: 3.777 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03633/0.4155, allocations: 5.871 MB / 1.345 GB, free: 14.06 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.84, allocations: 6.406 kB / 1.345 GB, free: 14.05 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] 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: 18.849417940014973]