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.001338/0.001338, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001599/0.001599, allocations: 219 kB / 23.04 MB, free: 5.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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.263/3.263, allocations: 0.49 GB / 0.7959 GB, free: 33.57 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="cs",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.002049/0.002049, allocations: 68.62 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3295, allocations: 176.1 MB / 1.327 GB, free: 1.977 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002223/0.3317, allocations: 0.8779 MB / 1.327 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002705/0.332, allocations: 83.7 kB / 1.328 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.11e-05/0.3321, allocations: 8 kB / 1.328 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.3322, allocations: 23.73 kB / 1.328 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.3323, allocations: 15.86 kB / 1.328 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.72e-05/0.3324, allocations: 43.95 kB / 1.328 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.3327, allocations: 247.5 kB / 1.328 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.333, allocations: 179.1 kB / 1.328 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.3332, allocations: 135.5 kB / 1.328 GB, free: 384 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.3333, allocations: 139.3 kB / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.992e-05/0.3334, allocations: 32 kB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.373e-05/0.3334, allocations: 32 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.289e-05/0.3335, allocations: 91.7 kB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.3337, allocations: 159.1 kB / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005162/0.3342, allocations: 462.1 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3342, allocations: 3.938 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3342, allocations: 3.938 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.346e-06/0.3342, allocations: 4 kB / 1.329 GB, free: 15.46 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.0008694/0.3351, allocations: 0.5246 MB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3351, allocations: 8.031 kB / 1.33 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.536e-05/0.3351, allocations: 8.844 kB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.081e-05/0.3352, allocations: 70.72 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.405e-05/0.3353, allocations: 48.66 kB / 1.33 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.3357, allocations: 267.2 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.364e-05/0.3358, allocations: 37.03 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.3359, allocations: 28.38 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.3365, allocations: 404 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3365, allocations: 0 / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.3365, allocations: 12 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.3366, allocations: 12 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.337, allocations: 311.3 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3387, allocations: 1.024 MB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.3388, allocations: 89.14 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.523e-05/0.3389, allocations: 49.8 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.3389, allocations: 3.938 kB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.339, allocations: 38.55 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.783e-06/0.339, allocations: 0 / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.000379/0.3394, allocations: 169.3 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.654e-05/0.3394, allocations: 77.11 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006422/0.3401, allocations: 0.5092 MB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.3401, allocations: 29.7 kB / 1.333 GB, free: 11.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.3403, allocations: 211.6 kB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3403, allocations: 15.84 kB / 1.333 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.432e-05/0.3404, allocations: 53.7 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3406, allocations: 342.8 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.3407, allocations: 71.95 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3408, allocations: 91.31 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.341, allocations: 113.7 kB / 1.334 GB, free: 10.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.341, allocations: 0 / 1.334 GB, free: 10.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003341/0.3413, allocations: 217.2 kB / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3413, allocations: 8 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3414, allocations: 0 / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3414, allocations: 3.938 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.3415, allocations: 31.92 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3415, allocations: 0 / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.786e-05/0.3416, allocations: 35.73 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.3416, allocations: 8 kB / 1.334 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.0002248/0.3419, allocations: 202 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.489e-05/0.3419, allocations: 31.77 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002346/0.3422, allocations: 122 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3422, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3422, allocations: 4.062 kB / 1.334 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3422, allocations: 0 / 1.334 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006933/0.3429, allocations: 0.632 MB / 1.335 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3429, allocations: 4 kB / 1.335 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.432e-05/0.3429, allocations: 4 kB / 1.335 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.3429, allocations: 0 / 1.335 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.3429, allocations: 4.125 kB / 1.335 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3429, allocations: 4 kB / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3429, allocations: 0 / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.3431, allocations: 131.7 kB / 1.335 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.987e-05/0.3432, allocations: 47.75 kB / 1.335 GB, free: 9.082 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.3432, allocations: 4 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.805e-05/0.3433, allocations: 8.047 kB / 1.335 GB, free: 9.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-05/0.3433, allocations: 11.97 kB / 1.335 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.3433, allocations: 0 / 1.335 GB, free: 9.059 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004601/0.3438, allocations: 391 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3438, allocations: 3.938 kB / 1.335 GB, free: 8.672 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002677/0.344, allocations: 35.94 kB / 1.335 GB, free: 8.637 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.0004795/0.3445, allocations: 0.6772 MB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.3447, allocations: 104 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3447, allocations: 4 kB / 1.336 GB, free: 7.812 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.822e-05/0.3448, allocations: 15.94 kB / 1.336 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.0002583/0.345, allocations: 35.33 kB / 1.336 GB, free: 7.766 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003611/0.3486, allocations: 2.911 MB / 1.339 GB, free: 4.75 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.3491, allocations: 0.7946 MB / 1.34 GB, free: 3.93 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001338/0.3493, allocations: 58.92 kB / 1.34 GB, free: 3.871 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.3494, allocations: 95.41 kB / 1.34 GB, free: 3.777 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.3494, allocations: 0 / 1.34 GB, free: 3.777 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.3773, allocations: 5.908 MB / 1.346 GB, free: 14.04 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.08, allocations: 6.719 kB / 1.346 GB, free: 14.03 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.989951880997978]