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.001854/0.001854, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002355/0.002355, allocations: 219 kB / 22.25 MB, free: 5.258 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.781 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.194/3.194, allocations: 0.49 GB / 0.7951 GB, free: 35.53 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.002013/0.002013, allocations: 61.31 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3519, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002218/0.3541, allocations: 0.8509 MB / 1.327 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003118/0.3544, allocations: 87.64 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.843e-05/0.3545, allocations: 4 kB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.3546, allocations: 23.73 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.3547, allocations: 15.86 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.844e-05/0.3548, allocations: 43.97 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.3551, allocations: 251.5 kB / 1.327 GB, free: 244 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003081/0.3554, allocations: 179.1 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.3555, allocations: 135.5 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.3557, allocations: 143.3 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.874e-05/0.3558, allocations: 36 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.3558, allocations: 32 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3559, allocations: 83.72 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.356, allocations: 131.3 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.3565, allocations: 462 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3565, allocations: 0 / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3565, allocations: 4 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.3565, allocations: 0 / 1.328 GB, free: 15.05 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.0007493/0.3573, allocations: 0.5285 MB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3573, allocations: 8.031 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.999e-05/0.3574, allocations: 74.72 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.3574, allocations: 40.66 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/0.3579, allocations: 275.2 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.358, allocations: 33.02 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.358, allocations: 36.38 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.3586, allocations: 400.2 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3586, allocations: 3.938 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.3587, allocations: 12 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3587, allocations: 8 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004568/0.3591, allocations: 307.3 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.3606, allocations: 0.9657 MB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.3607, allocations: 85.22 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.947e-05/0.3608, allocations: 49.72 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.3608, allocations: 4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.3608, allocations: 34.56 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.3608, allocations: 0 / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003429/0.3612, allocations: 173.3 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.3612, allocations: 77.11 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005885/0.3618, allocations: 0.513 MB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.3618, allocations: 29.64 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.362, allocations: 211.7 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.362, allocations: 11.95 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.258e-05/0.3621, allocations: 57.64 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3623, allocations: 342.8 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3624, allocations: 75.84 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.3626, allocations: 87.08 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.3627, allocations: 121.5 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3627, allocations: 0 / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003082/0.363, allocations: 209.3 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.363, allocations: 4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3631, allocations: 0 / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3631, allocations: 3.938 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.3632, allocations: 27.98 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.3632, allocations: 4 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.213e-05/0.3633, allocations: 39.62 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.3633, allocations: 7.984 kB / 1.333 GB, free: 10.01 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.3635, allocations: 208.1 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.141e-05/0.3636, allocations: 35.81 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/0.3638, allocations: 118 kB / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3638, allocations: 3.938 kB / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.3639, allocations: 4 kB / 1.333 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3639, allocations: 3.984 kB / 1.333 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.3645, allocations: 0.6049 MB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3645, allocations: 192 / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.3645, allocations: 4 kB / 1.334 GB, free: 8.953 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.3645, allocations: 7.938 kB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.3645, allocations: 0 / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3645, allocations: 0 / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3645, allocations: 4 kB / 1.334 GB, free: 8.941 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.3647, allocations: 135.4 kB / 1.334 GB, free: 8.781 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.3648, allocations: 43.88 kB / 1.334 GB, free: 8.738 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.3648, allocations: 11.94 kB / 1.334 GB, free: 8.727 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.087e-05/0.3649, allocations: 0 / 1.334 GB, free: 8.727 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.3649, allocations: 7.984 kB / 1.334 GB, free: 8.719 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.3649, allocations: 4 kB / 1.334 GB, free: 8.715 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004502/0.3654, allocations: 391 kB / 1.334 GB, free: 8.336 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3654, allocations: 0 / 1.334 GB, free: 8.336 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002353/0.3656, allocations: 43.95 kB / 1.334 GB, free: 8.293 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.0005156/0.3661, allocations: 0.6693 MB / 1.335 GB, free: 7.582 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002177/0.3663, allocations: 103.9 kB / 1.335 GB, free: 7.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3663, allocations: 0 / 1.335 GB, free: 7.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.881e-05/0.3664, allocations: 15.94 kB / 1.335 GB, free: 7.465 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.3666, allocations: 38.52 kB / 1.335 GB, free: 7.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.37, allocations: 2.911 MB / 1.338 GB, free: 4.414 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3702, allocations: 183.6 kB / 1.338 GB, free: 4.207 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001203/0.3703, allocations: 62.92 kB / 1.338 GB, free: 4.148 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.3705, allocations: 91.41 kB / 1.338 GB, free: 4.059 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.3705, allocations: 0 / 1.338 GB, free: 4.059 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.4064, allocations: 6.351 MB / 1.345 GB, free: 13.86 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.58, allocations: 9.109 kB / 1.345 GB, free: 13.86 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.270676562999142]