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.001603/0.001603, allocations: 105.4 kB / 16.45 MB, free: 6.508 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.001652/0.001652, allocations: 200.5 kB / 19.41 MB, free: 3.664 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.421/1.421, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.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 3.133/3.133, allocations: 497.2 MB / 0.7811 GB, free: 33.53 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 69.3 kB / 1.134 GB, free: 33.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3136, allocations: 173.9 MB / 1.304 GB, free: 1.539 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002183/0.3158, allocations: 0.8653 MB / 1.305 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002751/0.316, allocations: 95.69 kB / 1.305 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.684e-05/0.3161, allocations: 7.938 kB / 1.305 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.3162, allocations: 19.8 kB / 1.305 GB, free: 0.5547 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.3164, allocations: 15.86 kB / 1.305 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 7.721e-05/0.3165, allocations: 39.97 kB / 1.305 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003064/0.3168, allocations: 259.4 kB / 1.305 GB, free: 252 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.3171, allocations: 230.6 kB / 1.305 GB, free: 16 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.3173, allocations: 135.6 kB / 1.306 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.3174, allocations: 139.3 kB / 1.306 GB, free: 15.74 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.116e-05/0.3175, allocations: 36 kB / 1.306 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.57e-05/0.3175, allocations: 36 kB / 1.306 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.332e-05/0.3176, allocations: 87.7 kB / 1.306 GB, free: 15.59 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.3178, allocations: 151.1 kB / 1.306 GB, free: 15.44 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.3182, allocations: 462 kB / 1.306 GB, free: 14.98 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3182, allocations: 4 kB / 1.306 GB, free: 14.98 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3182, allocations: 0 / 1.306 GB, free: 14.98 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.3182, allocations: 0 / 1.306 GB, free: 14.98 MB / 1.014 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.0007215/0.3189, allocations: 0.5999 MB / 1.307 GB, free: 14.32 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.319, allocations: 8.625 kB / 1.307 GB, free: 14.32 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.861e-05/0.3191, allocations: 74.72 kB / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.3191, allocations: 40.7 kB / 1.307 GB, free: 14.2 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.3196, allocations: 332.3 kB / 1.307 GB, free: 13.83 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/0.3196, allocations: 33.03 kB / 1.307 GB, free: 13.8 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.3197, allocations: 32.38 kB / 1.308 GB, free: 13.77 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.3203, allocations: 396.2 kB / 1.308 GB, free: 13.37 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.3203, allocations: 7.875 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.3203, allocations: 20 kB / 1.308 GB, free: 13.34 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3204, allocations: 8 kB / 1.308 GB, free: 13.34 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.3208, allocations: 307.4 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.3223, allocations: 1.061 MB / 1.309 GB, free: 11.92 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.3224, allocations: 93.16 kB / 1.309 GB, free: 11.81 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.552e-05/0.3225, allocations: 41.8 kB / 1.309 GB, free: 11.76 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.3225, allocations: 0 / 1.309 GB, free: 11.76 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.3226, allocations: 38.55 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.3226, allocations: 0 / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0003413/0.3229, allocations: 169.3 kB / 1.31 GB, free: 11.54 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.323, allocations: 85.11 kB / 1.31 GB, free: 11.44 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.3236, allocations: 0.5053 MB / 1.31 GB, free: 10.93 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.3236, allocations: 29.7 kB / 1.31 GB, free: 10.89 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.3237, allocations: 203.7 kB / 1.31 GB, free: 10.69 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.3238, allocations: 15.91 kB / 1.31 GB, free: 10.68 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.067e-05/0.3238, allocations: 53.64 kB / 1.31 GB, free: 10.62 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.324, allocations: 346.8 kB / 1.311 GB, free: 10.27 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3241, allocations: 67.95 kB / 1.311 GB, free: 10.2 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.3242, allocations: 91.69 kB / 1.311 GB, free: 10.11 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.3244, allocations: 117.6 kB / 1.311 GB, free: 9.988 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3244, allocations: 0 / 1.311 GB, free: 9.988 MB / 1.014 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003204/0.3247, allocations: 213.3 kB / 1.311 GB, free: 9.773 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3248, allocations: 4 kB / 1.311 GB, free: 9.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3248, allocations: 0 / 1.311 GB, free: 9.77 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3248, allocations: 3.938 kB / 1.311 GB, free: 9.766 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.3249, allocations: 31.92 kB / 1.311 GB, free: 9.734 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.3249, allocations: 4 kB / 1.311 GB, free: 9.73 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.784e-05/0.325, allocations: 39.67 kB / 1.311 GB, free: 9.691 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.325, allocations: 4 kB / 1.311 GB, free: 9.688 MB / 1.014 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.0002163/0.3253, allocations: 200 kB / 1.312 GB, free: 9.48 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.3253, allocations: 35.77 kB / 1.312 GB, free: 9.445 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.3256, allocations: 114 kB / 1.312 GB, free: 9.324 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3256, allocations: 8 kB / 1.312 GB, free: 9.316 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.3256, allocations: 4 kB / 1.312 GB, free: 9.312 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3256, allocations: 4.375 kB / 1.312 GB, free: 9.309 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/0.3262, allocations: 0.6564 MB / 1.312 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3262, allocations: 0 / 1.312 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.305e-05/0.3262, allocations: 4 kB / 1.312 GB, free: 8.578 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3262, allocations: 12.06 kB / 1.312 GB, free: 8.566 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.3262, allocations: 0 / 1.312 GB, free: 8.566 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3263, allocations: 0 / 1.312 GB, free: 8.566 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.3263, allocations: 7.984 kB / 1.312 GB, free: 8.559 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.3264, allocations: 131.3 kB / 1.312 GB, free: 8.402 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.3265, allocations: 124.8 kB / 1.313 GB, free: 8.262 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.3266, allocations: 4 kB / 1.313 GB, free: 8.258 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.558e-05/0.3266, allocations: 4 kB / 1.313 GB, free: 8.254 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.3267, allocations: 7.984 kB / 1.313 GB, free: 8.246 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.3267, allocations: 4 kB / 1.313 GB, free: 8.242 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00044/0.3271, allocations: 387 kB / 1.313 GB, free: 7.863 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3271, allocations: 0 / 1.313 GB, free: 7.863 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002637/0.3274, allocations: 39.95 kB / 1.313 GB, free: 7.824 MB / 1.014 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.0005004/0.3279, allocations: 0.6811 MB / 1.314 GB, free: 7.102 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3281, allocations: 111.7 kB / 1.314 GB, free: 6.996 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3281, allocations: 0 / 1.314 GB, free: 6.996 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 2.721e-05/0.3281, allocations: 12 kB / 1.314 GB, free: 6.984 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.3284, allocations: 31.61 kB / 1.314 GB, free: 6.957 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.3319, allocations: 2.905 MB / 1.317 GB, free: 3.945 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.3323, allocations: 0.7947 MB / 1.317 GB, free: 3.125 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001228/0.3324, allocations: 58.92 kB / 1.318 GB, free: 3.07 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.3325, allocations: 94.91 kB / 1.318 GB, free: 2.984 MB / 1.014 GB Notification: Performance of SimCode: time 5.61e-07/0.3325, allocations: 0 / 1.318 GB, free: 2.984 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.3612, allocations: 5.708 MB / 1.323 GB, free: 13.43 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.383, allocations: 3.656 kB / 1.323 GB, free: 13.43 MB / 1.029 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] 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: 14.837484158575535]