Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001365/0.001365, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001457/0.001457, allocations: 216.1 kB / 23.03 MB, free: 4.922 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.451/1.451, allocations: 230.6 MB / 256.8 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.768/2.768, allocations: 476.8 MB / 0.7715 GB, free: 3.902 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_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.00195/0.00195, allocations: 68.91 kB / 1.118 GB, free: 39.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3085, allocations: 170 MB / 1.284 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002154/0.3106, allocations: 0.8338 MB / 1.285 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002623/0.3109, allocations: 89.39 kB / 1.285 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.798e-05/0.311, allocations: 7.938 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.3111, allocations: 31.66 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.3112, allocations: 19.86 kB / 1.285 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 8.033e-05/0.3113, allocations: 39.97 kB / 1.285 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.3116, allocations: 251.5 kB / 1.285 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.3119, allocations: 174.8 kB / 1.285 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.312, allocations: 131.5 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.3122, allocations: 147.3 kB / 1.286 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.3123, allocations: 32 kB / 1.286 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.801e-05/0.3123, allocations: 32 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.541e-05/0.3124, allocations: 83.72 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3125, allocations: 119.3 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.313, allocations: 467.2 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.313, allocations: 0 / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.313, allocations: 0 / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.313, allocations: 0 / 1.286 GB, free: 8.262 MB / 0.9825 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.0006911/0.3137, allocations: 0.5324 MB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3137, allocations: 12.03 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.712e-05/0.3137, allocations: 12.84 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.415e-05/0.3138, allocations: 78.66 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.3139, allocations: 44.66 kB / 1.287 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.3143, allocations: 266.5 kB / 1.287 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.629e-05/0.3144, allocations: 41.02 kB / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.3144, allocations: 28.38 kB / 1.287 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.315, allocations: 404 kB / 1.288 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.315, allocations: 4 kB / 1.288 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.3151, allocations: 8 kB / 1.288 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3151, allocations: 8 kB / 1.288 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004646/0.3155, allocations: 307.5 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.3169, allocations: 0.962 MB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.3171, allocations: 85.22 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.432e-05/0.3171, allocations: 49.72 kB / 1.289 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3171, allocations: 3.984 kB / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3172, allocations: 34.56 kB / 1.289 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.532e-06/0.3172, allocations: 4 kB / 1.289 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003322/0.3175, allocations: 169.3 kB / 1.289 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.3176, allocations: 77.11 kB / 1.289 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005772/0.3181, allocations: 0.5053 MB / 1.29 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3182, allocations: 29.7 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.3183, allocations: 211.7 kB / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.3183, allocations: 15.84 kB / 1.29 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.3184, allocations: 57.62 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3186, allocations: 346.8 kB / 1.291 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.3187, allocations: 63.95 kB / 1.291 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.3188, allocations: 93.56 kB / 1.291 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.319, allocations: 117.6 kB / 1.291 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.319, allocations: 0 / 1.291 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003196/0.3193, allocations: 213.3 kB / 1.291 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3193, allocations: 6.031 kB / 1.291 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3193, allocations: 0 / 1.291 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3193, allocations: 7.938 kB / 1.291 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.3195, allocations: 24.17 kB / 1.291 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3195, allocations: 4 kB / 1.291 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.925e-05/0.3196, allocations: 35.67 kB / 1.291 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.3196, allocations: 8 kB / 1.291 GB, free: 3.215 MB / 0.9825 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.0002049/0.3198, allocations: 207.7 kB / 1.291 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.891e-05/0.3199, allocations: 31.77 kB / 1.291 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.3201, allocations: 118 kB / 1.291 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3201, allocations: 4 kB / 1.291 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3201, allocations: 0 / 1.291 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3201, allocations: 0 / 1.291 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.3207, allocations: 0.6126 MB / 1.292 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3207, allocations: 4 kB / 1.292 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.3207, allocations: 11.94 kB / 1.292 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.3207, allocations: 0 / 1.292 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.3207, allocations: 4 kB / 1.292 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3207, allocations: 4 kB / 1.292 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3207, allocations: 0 / 1.292 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.3208, allocations: 135.3 kB / 1.292 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.426e-05/0.3209, allocations: 39.8 kB / 1.292 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.3209, allocations: 8.078 kB / 1.292 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.368e-05/0.321, allocations: 8 kB / 1.292 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.321, allocations: 8.406 kB / 1.292 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.321, allocations: 4 kB / 1.292 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004227/0.3215, allocations: 387 kB / 1.293 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3215, allocations: 0 / 1.293 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002436/0.3217, allocations: 39.94 kB / 1.293 GB, free: 1.504 MB / 0.9825 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.0004771/0.3222, allocations: 0.6732 MB / 1.293 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.3224, allocations: 107.9 kB / 1.293 GB, free: 0.6836 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3224, allocations: 4 kB / 1.293 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.3224, allocations: 15.94 kB / 1.294 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.3227, allocations: 33.14 kB / 1.294 GB, free: 0.6328 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.3259, allocations: 2.898 MB / 1.296 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.3261, allocations: 179.8 kB / 1.297 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001101/0.3262, allocations: 58.92 kB / 1.297 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.3263, allocations: 95.41 kB / 1.297 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/0.3263, allocations: 0 / 1.297 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/0.3535, allocations: 5.963 MB / 1.303 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.1, allocations: 6.406 kB / 1.303 GB, free: 7.52 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.7259548160946]